in reply to Re^8: A short whishlist of Perl5 improvements leaping to Perl7
in thread A short whishlist of Perl5 improvements leaping to Perl7
I don't understand why you didn't go the easy way of defining my %rtoa either on file or function scope.Though that was easier, I am pedantic and just couldn't bring myself to do it:
Update: Re the rationale for introducing state variables, found a quote from Larry himself in Re: About "state" variables in Perl 5.10:
However, that difference is not why we introduced state variables. The big win is the psychological one of not having to look outside of the sub to find the definition of $x. (That, and we wanted it as a primitive in Perl 6 so that people could write stateful macro constructs without forcing the user to define the state variable externally; in fact, we also use it ourselves in order to implement the stateful flipflop operator without having to build the flipflop in as a primitive, as it is in Perl 5.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^10: A short whishlist of Perl5 improvements leaping to Perl7
by LanX (Saint) on Nov 28, 2020 at 23:36 UTC | |
by eyepopslikeamosquito (Archbishop) on Nov 29, 2020 at 01:22 UTC |