Perl 5.10, 20 Year Anniversary 304
alfcateat writes "Perl 1 was released to the public by Larry Wall 20 years ago yesterday. To celebrate, Perl5Porters have released Perl5.10, the latest stable version of Perl 5. Happy Birthday Perl!
Perl 5.10 isn't just a bug fix version: it's full of new features that I'm eager to use: named captures in regular expressions, state variables for subroutines, the defined-or operator, a switch statement (called given-when, though), a faster regex engine, and more. You can read more about the changes in perldelta."
Hmmmmmm (Score:5, Insightful)
I was right... we hit double-digits with Perl 5 before Perl 6 became available... and don't go on about Parrot -- it's not Perl 6. I'll be interested to download 5.10 and see what it can do. The speedier regex engine is going to be a great boon.
Switch statements are syntactic sugar (Score:3, Insightful)
Aren't these two unrelated events? (Score:2, Insightful)
I can't see why (in purely practical terms) it's worth coordinating a release with an anniversary.
Surely if the code is "ready" (thoroughly tested etc) before the anniversary, it could very easily be useful as a release to developers before the anniversary.
If it isn't ready, it shouldn't be released early just because there's an anniversary.
Re:Aren't these two unrelated events? (Score:1, Insightful)
Re:Hmmmmmm (Score:5, Insightful)
Much Thanks to Mr. Wall (Score:5, Insightful)
Re:recursive patterns (Score:3, Insightful)
Yeah, I saw recursive patterns and thought, "Crap, now I'm going to have to relearn how to look at regexes so that I see those too." Still, I'm excited about the power (while being daunted by the readability).
Re:Switch statements are syntactic sugar (Score:5, Insightful)
Re:Switch statements are syntactic sugar (Score:3, Insightful)
Lambda-calculus is in no way high level, it just doesn't happen to correspond to a machine model.
Re:Much Thanks to Mr. Wall (Score:3, Insightful)
Implicit vs. explicit parsing (Score:4, Insightful)
Implicit parsing a num to a string is straightforward and will pretty much always work, even if you may get wierd results like "1.66666666666666666667". But the other way is just too careless to let be implicitly done. You may unexpected errors when for some reason the string you use cannot be parsed, and you may get either an unexpected datatype or a truncated result when a parsed string would not match the other num you add to it (such as int a = x+5 where x is a string "3.5").
Casting from string to number should always be done explicitly, with precise definition of the data type you cast to, and ideally with an error catching block in case something goes wrong. Letting it be done implicitly is a recipe for headache.
Re:what the FUD (Score:3, Insightful)