4 ms·
I don't have a ready obvious alternative (though I do see others suggested an "f" suffix). The lack of alternative was sort of my point... language design is t
by ryebit 9y ago
I don't have a ready obvious alternative (though I do see others suggested an "f" suffix). The lack of alternative was sort of my point... language design is tricky, and small features in one place can paint you into a corner when implementing another.
Establishing the right dynamic tension between those features (and the parser, and the VM, and the user's mental model) definitely makes language design one of the high arts in the computer world.
I'm not even saying this was the wrong decision; just that it causing a surprising deviation from how numeric literals behave in other languages.
But Perl's goal has always seemed to me to be less about creating a rigorous language with well defined types that map to the low level; and more about creating an expressive feeling (to humans) language, where fundamental differences in type were merely an implementation detail.
So I'm not surprised that it deviates from the norm in some interesting ways; I'm just not sure if I personally like the feel when I try to speak it :)
... but I might think to close to the metal to be the target audience.