in reply to A short whishlist of Perl5 improvements leaping to Perl7
With your emphasis of the word "modern", you seem to be implying that variable declaration is old-fashioned and it is more modern to auto-declare them.
However, the opposite is true. Javascript introduced a strict mode in ECMAScript 5, with variable declarations required, and its use is increasingly being encouraged.
The various varieties of Visual Basic (VB.NET, VBA, etc) have "Option Explicit" which forces you to declare variables before using them. Microsoft's documentation for the language says "Setting Option Explicit to Off is generally not a good practice".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: A short whishlist of Perl5 improvements leaping to Perl7
by kennethk (Abbot) on Nov 24, 2020 at 15:29 UTC | |
by jcb (Parson) on Nov 25, 2020 at 00:03 UTC | |
by kennethk (Abbot) on Nov 25, 2020 at 16:39 UTC | |
by LanX (Saint) on Nov 25, 2020 at 17:06 UTC |
In Section
Meditations