> it is a bit disturbing though:
>  auto foo = Bar !(3, Baz, 42);
>  auto bar = Foo !(z);
>
> it is hard to not think of these statements as negating something (probably
> especially the second one ?)
>  I wish D had chosen @ or $ instead of !.

Perhaps, but isn't it true that every language has slightly confusing
stuff when first considered?  Whitespace in python, < > for template
stuff in C++, [] notation for buffers in cython (I've gotten used to
it fine, and don't mind it now, but it did make me to do a few
double-takes at first).   What I like about D's syntax is that it's
easy to pick out !( ) as type arguments to a function, class, method,
etc. and ( ) for the regular arguments.  What I have found to be nice
(and granted, I haven't done much D programming recently) is that type
parameters and regular parameters follow similar syntax, by intention.
 I've found that templating stuff in D is an amazingly nice experience
(C++ just stinks in comparison) as once I've got my head around what
can and can't be done, the syntax is very intuitive.

Just my 2 cents, but I'm far from being experienced enough to deside
what would work best here.

-- Hoyt

++++++++++++++++++++++++++++++++++++++++++++++++
+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ [email protected]
++++++++++++++++++++++++++++++++++++++++++
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to