Jonathan M Davis wrote:
> Personally, I think that both would be horrible. Having const is great, and
> having non-nullable references could be great, but I sure wouldn't want them
> to
> be the default. In addition to that, however, having them as the default
> would
> make porting code from other C-based languages a total nightmare - not to
> mention it totally shatters the general principle that either C/C++ code is
> valid D code with the exact same behavior it doesn't compile. That alone
> makes
> making them the default untenable.
>
How does making const and/or non-nullable default break this
principle? If the code relies on nullable variables, then it won't
compile, otherwise it will work exactly the same way as C.
Jerome
--
mailto:[email protected]
http://jeberger.free.fr
Jabber: [email protected]
signature.asc
Description: OpenPGP digital signature
