Hacker News new | ask | show | jobs
by egeozcan 1861 days ago
JavaScript had something close, valid on the context level, with "use strict" (which is, I guess, borrowed from Perl), and I still don't understand why they don't repeat that for newer features that would be much simpler if they broke backwards compatibility.
1 comments

Didn't this end up in every Perl file having a ton of different "use" statements at the top for features that became expected?
Perl model of enabling features individually was indeed too much, I was suggesting a language-level switch.