shouting versus dotting
Alexander Pánek
alexander.panek at brainsware.org
Sun Oct 5 06:20:21 PDT 2008
Christopher Wright wrote:
> Derek Parnell wrote:
>> On Sun, 05 Oct 2008 00:12:06 -0500, Andrei Alexandrescu wrote:
>>
>>> Word followed by exclamation mark. Our brains are wired to interpret
>>> that as an exclamation. If it's frequent enough in code, it becomes
>>> really jarring.
>>
>> I too find the form ...
>>
>> Template!(arg1, arg2, arg3)
>>
>> a bit uncomfortable.
>>
>> If we need to visually distinguish templates (compile-time constructs)
>> from
>> run-time constructs, I would advocate a totally different style all
>> together. Maybe something more along the lines of the DDoc style ...
>>
>> @(Template arg1 arg2 arg3)
>>
>> Nested it would look like ...
>>
>> @(This @(That @(TheOther crap)))
>>
>> But I'm being too left-field, I suspect.
>>
>
> It's actually a lot quicker to type @( than !( -- it's reasonable for me
> to use the same shift key for the @ and the (. So I wouldn't much
> complain about this, except for the ugliness. And !( is also ugly.
Since I only use the left shift key, it’s equally quick to type for me.
I don’t see much point in basing syntax on how fast you can type. Also,
on German keyboard layouts (and I think lots of other non-us based,
European layouts), the @ is at Compose + q, which is pretty uncomfortable.
More information about the Digitalmars-d
mailing list