dropping parentheses on template instantiation
Leandro Lucarella
llucax at gmail.com
Mon Oct 6 12:03:14 PDT 2008
Andrei Alexandrescu, el 5 de octubre a las 17:47 me escribiste:
> >>Ideas?
> >I really liked downs idea, what about
> >auto covariance = Matrix of real(n, n);
> >auto normalized = SparseVector of double(n);
> >auto foo = Bar of (double, Foo)(n);
> >Or maybe reuse "with"?
> >auto covariance = Matrix with real(n, n);
> >auto normalized = SparseVector with double(n);
> >auto foo = Bar with (double, Foo)(n);
>
> What happened to "I feel is unnecessary to change the template instantiation
> syntax"?
Is still there, I this thread is dropped right now, I'll be just happy =)
But since this doesn't look like it's going away, I'll try to push in the
direction that I find less ugly.
I think changing !( for .( is plain dumb. If a change will be introduced,
I hope it really make a difference.
> I guess you simply saw something you liked. :o)
What I liked about downs idea was the hidden idea of improving D's tuple
support ;)
> About "of" or "with":
>
> array = map of sqrt(array);
> inPlace with writeln(array);
>
> Guess I can rest my case now :o).
array = map with sqrt(array) looks just right! Come on!
And I don't know what this should mean anyways so I can't pick a good name
to make it clear with "with" =):
inPlace.(writeln)(array);
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
- Tata Dios lo creó a usté solamente pa despertar al pueblo y fecundar
las gayinas.
- Otro constrasentido divino... Quieren que yo salga de joda con las
hembras y después quieren que madrugue.
-- Inodoro Pereyra y un gallo
More information about the Digitalmars-d
mailing list