Vanquish Forever These Bugs That Blasted Your Kingdom
Cym13
cpicard at openmailbox.org
Sun Feb 11 15:18:20 UTC 2018
On Sunday, 11 February 2018 at 15:11:55 UTC, psychoticRabbit
wrote:
> On Wednesday, 7 February 2018 at 20:30:54 UTC, Dmitry Olshansky
> wrote:
>> Other languages like Rust or C# (or Java) have bounds check.
>> Plus we probably lose it in release mode, which is the mode
>> where lurking bugs are discovered usually days after
>> development ;) Some of these languages would prevent it on the
>> VM level/compiler level, leaving no way to shoot yourself in
>> the foot.
>>
>
> We all really need to get away from this idea that *we* should
> stop *others* from shooting themselves in the foot. People are
> free to do it, if they want. Who has the right to take that
> choice away from me?
>
> So let's NOT be like those other languages that just want to
> control what you do.
>
> -boundscheck=off
>
> D rocks!
On the other hand, if my bank shoots itself in the foot it's with
my money... We must definitely have ways to do it but it must be
explicit and restricted to where it's useful. There is no need
for -boundscheck=off in D. It is always possible to disable
boundschecking locally, and that's a good thing.
More information about the Digitalmars-d-announce
mailing list