Adding Unicode operators to D

Bruno Medeiros brunodomedeiros+spam at com.gmail
Sun Oct 26 07:52:56 PDT 2008


Simen Kjaeraas wrote:
> On Fri, 24 Oct 2008 18:28:51 +0200, Bruno Medeiros 
> <brunodomedeiros+spam at com.gmail> wrote:
> 
>> Andrei Alexandrescu wrote:
>>> Please vote up before the haters take it down, and discuss:
>>>  http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/ 
>>>    Andrei
>>
>> I'm unsure about this idea.
>>
>> I don't know if it would be worthwhile, but I would say there are two 
>> aspects that likely would need to be observed for this to work out 
>> favorably:
>>
>> * Having non-unicode versions of the symbols/keywords available in 
>> Unicode, such that non-Uunicode editing and viewing is always possible 
>> as a fallback. This has some important consequences though, such as 
>> making Unicode-symbol-usage unable to solve the shortage of brackets 
>> for, for example, the template instantiation syntax (because an 
>> alternative ASCII notation would still be necessary).
>>
>> * Having a way to directly input the Unicode symbols in the keyboard. 
>> One reason is because of typing succinctness, and another, is because 
>> I find the alternative (have the editor/IDE automatically change an 
>> ASCII character sequence into a Unicode symbol) to have several 
>> disadvantages: First is that it doesn't work outside the editors/IDEs 
>> configured to do so, (which is a bummer, there is actually plenty of 
>> code written outside that: newsgroups, articles, forums, bug reports, 
>> IRC, etc.). Second, I personally like that the editor always require 
>> exactly N backspaces to erase N typed characters[*].
>>
>> So, anyone knows if it is possible on Windows (I believe in Unix it 
>> is) to configure your keyboard mapping with custom settings? For 
>> example, if I press AltGr-O, it inputs some Unicode character of my 
>> choosing?
> 
> I'd guess this oughtta do it:
> http://www.microsoft.com/globaldev/tools/msklc.mspx
> 
> 

Yes, exactly that! I had the impression there was such a program for 
Windows, but couldn't remember the name.

-- 
Bruno Medeiros - Software Developer, MSc. in CS/E graduate
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D


More information about the Digitalmars-d-announce mailing list