foo!(bar) ==> foo{bar}

Steven Schveighoffer schveiguy at yahoo.com
Thu Oct 9 06:27:55 PDT 2008


"Andrei Alexandrescu" wrote
> Sergey Gromov wrote:
>> Thu, 09 Oct 2008 07:26:39 -0500,
>> Andrei Alexandrescu wrote:
>>> KennyTM~ wrote:
>>>> Gide Nwawudu wrote:
>>>>> The IDE/editor highlights the guillemets in a differnet colour,
>>>>> because unlike brackets, this is easily done without affecting other
>>>>> expressions. It does look ok.
>>>>>
>>>>> Gide
>>>> What if I want to program in notepad.exe?
>>> No highlight of course but I was surprised that Notepad displayed the 
>>> guillemets properly.
>>
>> XP Notepad has full Unicode support and can save various flavours of 
>> Unicode files.  Microsoft cares about their non-English speaking, non-
>> European customers.
>>
>> As to Unicode punctuation, I wasn't able to evaluate most of the 
>> proposals in this NG because my news reader is not Unicode-aware and my 
>> code page is Russian, so I've seen most of them as question marks.
>
> Speaking of which, an interesting converse approach would be if the editor 
> would accept and store !() while displaying guillemets instead. Does 
> anyone know how this could be done for emacs?

I don't know how it can be done, but I'm sure it can be, and this sounds 
like the BEST solution :)  Because then if I read your code, I don't have to 
worry about dealing with multiple template syntaxes, likewise for you.

-Steve 





More information about the Digitalmars-d mailing list