Re: Strict mode

2009-09-24 Thread bearophile
language_fan: > Since your suggestion may add new syntactic constructs, can you somehow > show that making the language more strict also improves overall program > quality in some ways that unit testing and stronger type system cannot > achieve. In that example I've shown the possible syntax o

Re: Strict mode

2009-09-24 Thread language_fan
Thu, 24 Sep 2009 06:17:22 -0400, bearophile thusly wrote: > There are other ways to make the language more strict, for example > disallowing some automatic casts, etc. (C# already has some of this, for > example float => double requires a cast. I don't remember if D2 requires > this already). Sin

Strict mode

2009-09-24 Thread bearophile
In some dynamic/scripting languages the basic programming modality is quite relaxed, this may help the programmer to quickly write a 10 lines long script. But when they want to write longer programs of 200 or 2000+ lines, some of such languages offer a "strict mode" that im