Template instantiation syntax

Dave Dave_member at pathlink.com
Sat Oct 11 11:47:16 PDT 2008


"Walter Bright" <newshound1 at digitalmars.com> wrote in message 
news:gcogl4$28ui$1 at digitalmars.com...
> We seem to have reached a dead end on finding a significantly better 
> alternative than foo!(bar).
>
> All is not lost, though. Andrei is working on an emacs module that will 
> parse D code and replace foo!(bar) with foo«bar» for display only when the 
> editor is in D mode, the underlying text will still be foo!(bar). (This 
> doesn't affect D at all, only its display in Emacs.)
>

So, we have one of the most prolific, important and published D template 
library developers using chevrons where someone opening that with any other 
editor would see foo!(bar) or perhaps foo!bar. And this is all encouraged by 
the primary language architect. Nuts!

I can also see this causing issues with continuity of style, where some 
particular arrangement of code would look readable with chevrons and not 
!(), or vice-versa.

When Andrei writes his articles and books, which would he use in the text?

I mean Andrei can setup emacs anyway he wants, but this also smacks of 
something being "blessed" by the language designer.

More lunacy! <g>

Let's all take a deep breath any think this through a little longer...

- Dave




More information about the Digitalmars-d mailing list