Syntax changing
David Nadlinger
see at klickverbot.at
Sun Jun 5 14:33:44 PDT 2011
On 6/5/11 11:11 PM, Monkol wrote:
> the statement to<float("123e2")> is more easy readable then
> to!float("123e2") for example
(You probably meant »to<float>("123e2")«).
That's purely subjective (and, by the way, I don't agree with your
assertion), while there are objective downsides to using angled brackets
– they are ambiguous with the <, >, and >> operators. For example,
consider the following pieces of C++ code:
»foo<bar<16>>2>>« or just »foo<bar>>«
Do you see the ambiguity created here? D doesn't suffer from this
problem, since ! is never used as a binary operator.
David
More information about the Digitalmars-d
mailing list