Why not move cast to the standard library?

downs default_357-line at yahoo.de
Thu Sep 24 09:35:22 PDT 2009


With all the neat template tricks we have in 2.0, and since we're widely redefining the syntax anyway, why not deprecate the current cast syntax and move it into object.d as a library function?

So instead of cast(Foo) bar; you would say cast!Foo(bar); .. save on a keyword and demonstrate language power at the same time.

What sez ye?



More information about the Digitalmars-d mailing list