opImplicitCast/opImplicitCastFrom
Simen Kjaeraas
simen.kjaras at gmail.com
Mon Oct 27 10:28:16 PDT 2008
On Mon, 27 Oct 2008 17:40:44 +0100, Hxal <Hxal at freenode.irc> wrote:
> bearophile Wrote:
>> Unfortunately I think such library solution is nearly useless.
>> Programmers are lazy, and lot of them even actively resist changes and
>> ideas that may improve their programs.
>
> Well then, that's their problem, isn't it? I mean, there's no point
> making their programs better against their will. :P
As was mentioned here, the 'int foo = void;' syntax is an example of the
above, and, I feel, works great. It forces programmers to be explicit about
their intentions, without adding too much overhead syntax. The same could
be said of using int_unsafe instead of int.
--
Simen
More information about the Digitalmars-d
mailing list