Whenever you try to add a feature to a language you are instantly dealing with legacy and backwards compatibility.
Perl has a strict mode that is very popular in the community. I remember projects where if I checked in a module without
use strict; and
-w I would get beaten up.
use strict but since they couldn’t add it to the language itself, they have you put it in a string
"use strict";. You can place it at the top of the file, or even as the first statement in a function.
I find it incredibly ugly, yet pragmatic. It works.
However, then I saw some new items:
And currently you can’t switch the order around? It looks for absolute keys? That seems a little crazy. Surely all of these should be possible:
"use cajita,strict"; "use strict,cajita"; "use strict"; "use cajita";
Then this little pragmatic hack starts to get real messy. I start to joking imagine a ludicrous world like this:
I like to think of myself as pragmatic, but why do I feel so cranky about
"use strict";? :)