4 ms·
I use perl5 like that, but honestly I sometimes script in Tcl because I'm too used to applications perl. For me perl5 is lexical scoping, closures, map/grep/re
by mst 8y ago
I use perl5 like that, but honestly I sometimes script in Tcl because I'm too used to applications perl.
For me perl5 is lexical scoping, closures, map/grep/reduce, and an OO model that steals the best of python (ignoring ruby's crippled OO which involved failing to steal from smalltalk properly) and then adds a first class attribute system so you can declare attributes once and not need to re-type the names to get a working constructor.
ES6 isn't bad, mind - with 'use strict' and 'let' it's close to a usable perl5 apart from the fact that its errors are runtime instead of compile time (typescript helps there of course) and the OO is still relatively limited, but I have some ideas using decorators that should bring the best of perl5 OO to javascript since I've been unable to convince anybody else to steal our features already
- User23 8y agoI like to Joke that Perl is the ugliest most usable lisp ever. The way it lets you play with the symbol table for all its various namespaces is extremely powerful. It also exposes dynamic and lexical scopes in a way reminiscent of Common Lisp.
- mst 8y agoCo-signed. People often complain that I write lisp in everything. I mostly consider this a feature.