Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Are there any programming languages that support the use of unicode logic operators? For example, many programming languages use "!=" as the "does not equal" operator, but in mathematics the symbol is "". Since unicode is now more standardized, why don't programming languages support their use as logical operators? Many of the symbols are on my keyboard, I just hit the alt button.

share|improve this question
2  
can you tell me how to type using my QWERTY keyboard? –  Bryan Chen Nov 6 '13 at 4:37
    
Ever seen an APL keyboard? No? There is a reason non standard keyboards for programming don't take well. –  MichaelT Nov 6 '13 at 4:44
    
@BryanChen "alt"+"=" –  kyle k Nov 6 '13 at 4:54
1  
not working on my computer... alt+some number does print it, but too hard for me to remember what number –  Bryan Chen Nov 6 '13 at 4:57
    
@BryanChen I use a mac, I also etched the symbols onto the keys. –  kyle k Nov 6 '13 at 5:03

1 Answer 1

up vote 7 down vote accepted

Yes some languages do. Why not more? Probably because it's a pain to type. I use all the languages I linked above and I rarely use unicode syntax, it's not on my keyboard and it adds about 0 value to my code.

I'm also aware of the fact that unicode is standardized, but not always implemented well. Emacs had problems with it until quite recently, many languages still are bad at unicode which makes it a pain to parse/autogenerate.

That being said, when I do any literate programming or typeset code in anyway, I do use unicode, but there it's with a simple script to do textual substitutions.

share|improve this answer
    
I wonder why Windows doesn't provide any decent way to type non-ASCII characters on its US keyboard layout? The Macintosh could easily type the arithmetic operators back in the 1980's, as could by DOS-based text editor. –  supercat Feb 25 at 0:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.