Sometimes I forget how insane Perl was before `use strict;` became commonplace.
combined with -T, it's given me a lot of peace of mind, which I miss when using PHP.
I'm seriously contemplating writing my own SetConst and GetConst functions. (Lately I've been finding a lot of sense in immutable variables.)
use const name => value;
Though ... I'm not sure why you'd need a "set" constant, as constants should be immutable, and set once ...Are consts not allowed to be set at runtime?
use constant name => value;
Albeit `Const::Fast` might be considered preferable for several reasons (deeply readonly structures, variables which you can interpolate rather than barewords, etc). use constant true => (1==1);
use constant false=> (1==0);
in many of my codes. It lets me use them as barewords, and makes the logic it appears in, saner. But this is a style/taste thing.Try Hack? It's not too bad and the typing can be added piecemeal.
Nobody is going to bother with your language when it's full out there of solutions as good as yours that people can install in one second.