3 ms·
> Thankfully most languages didn't make this mistake but some did: CMake, YAML, Bash, TCL. As well as Perl and PHP, though both have since recanted (Perl start
by masklinn 5y ago
> Thankfully most languages didn't make this mistake but some did: CMake, YAML, Bash, TCL.
As well as Perl and PHP, though both have since recanted (Perl started 20 years ago with strict mode, which IIRC forbids barewords in most contexts; and PHP deprecated barewords in 7.2 and removed them in 8).
- arnsholt 5y agoOff the top of my head, the only place strict Perl allows a bareword is the left-hand side of the => fat comma operator and pre-declared subroutines (IIRC, I never could quite remember the rules for that).