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

Simen Kjaeraas simen.kjaras at gmail.com
Tue Oct 7 12:40:54 PDT 2008


On Tue, 07 Oct 2008 19:19:00 +0200, Steven Schveighoffer  
<schveiguy at yahoo.com> wrote:

> "Frank Benoit" wrote
>> Steven Schveighoffer schrieb:
>>
>>> To be honest, I sort of agree with superdan.  If you are going to be
>>> programming, and your keyboard doesn't let you easily type '{}', it
>>> sounds
>>> like you just bought the wrong keyboard.  Java, C#, C/C++, D, etc. all
>>> use
>>> curly braces to denote blocks of code.  I guess Danish and German
>>> keyboard
>>> developers aren't expecting their people to program in decent  
>>> programming
>>> languages?
>>>
>>> Kinda shortsighted if you ask me...
>>>
>>> -Steve
>>>
>>>
>>
>> Yes, i guess they thought people want to write danish or german text.
>> Stupid they are :D
>
> What I meant was, is it not possible to dedicate some keys to type { }  
> *and*
> allow typing german/danish text?  Is there not a way to have both?   
> That's
> all I was saying.  I only ever use curly braces in code,  I almost never  
> use
> it while typing English text.  Yet there those keys are ;)  It probably  
> was
> more of a process where those symbols were chosen *because* the keys were
> easy to find, but still, a "programmer's" german keyboard seems like a
> distinct possibility.
>
> -Steve

Without using modifiers, this can't be done, for the simple reason that  
some other languages' alphabets have more letters than the english.  
Norwegian layout  has æøå in place of ';[ (and yes, we do use those weird  
symbols). However, there are other keyboard layouts available, which gives  
people the best of both worlds.

-- 
Simen



More information about the Digitalmars-d mailing list