Earlier quoted context omitted.
I've been writing forward compatible py2 code for years using the __future__ imports to ensure proper semantics are preserved. When all my external dependencies have py3 support it becomes a breeze to upgrade using 2to3 and the rare occasional manual fixup.
And your tests will validate nothing was broken, right? You have thorough tests?
Larry Wall Unveils Perl 6.0.0
161–170 of 336 posts
Re: Larry Wall Unveils Perl 6.0.0
#162Larry goes by the handle TimToady
Re: Larry Wall Unveils Perl 6.0.0
#163Larry goes by the handle TimToady
Re: Larry Wall Unveils Perl 6.0.0
#164Earlier quoted context omitted.
One of my Twitter followers posted a gist: https://gist.github.com/paulodiniz/39698ac1fe5f62e3180e Sure, I was just addressing the "I don't know how to do that." Rails offer this for models in certain circumstances, for example.
That's very cute. Yeah, I was responding to a post that claimed it was trivial; that's cute but not trivial - although it does demonstrate that using 'alias' to rename isn't necessary, which is nice to know. I can absolutely see how I'd turn this into a full Class::Method::Modifiers re-implementation, so I'll totally stipulate to 'trivial if' :D
Re: Larry Wall Unveils Perl 6.0.0
#165Earlier quoted context omitted.
Whereas Go has gone the other route and jettisoned everything. Not having a ternary operator is a real pain. One thing Go does well is provide the gofmt tool. There is only one way to format code properly. Does Perl 6 have something like this?
Probably soon. Perl 5 has a Tidy'ing tool[0], as well as a Lint[1] tool. Both are based on rules created from (originally) Best Practices [2]. These rules of course can be modified to taste, so you can set your own rules/filters before checking in your changes to a repo (or, whatever) [0] https://metacpan.org/pod/distribution/Perl-Tidy/lib/Perl/Tid... [1] https://metacpan.org/pod/Perl::Critic [2] http://shop.oreilly.…
Re: Larry Wall Unveils Perl 6.0.0
#166I love Perl [I have been to perl monger meetings and I had to look up how to 'unshift' in python today]. But Python3 is mostly just Python2 with a print function instead of a print keyword. It is occasionally non-trivial to port large existing code bases from Python2 to Python3, but it is practically always trivial for a Python2 programmer to write new code in Python3. I hope Perl 6 will get its own camel book!
Re: Larry Wall Unveils Perl 6.0.0
#167Kudos to Larry for sticking with it, and for (I'm sure) introducing interesting ideas into the world of programming languages. That said, I have to wonder how many people will really use Perl 6 in their day-to-day work, and how many will look at it as a curiosity.
For me, I'm afraid that Python and Ruby have replaced Perl, despite more than 10 years in which Perl was my go-to language. Maybe I'll return to it, but I sorta doubt it.
Re: Larry Wall Unveils Perl 6.0.0
#168I'm really surprised this site is the source y'all chose to upvote. Not only was the second-newest article published in 2012, they also have an assortment of other questionable content[0][1]. Advertising from rotten.com and a category named "Jonny Jihad" are also professional touches. I mean, whatever floats your boat, but HN, is this really one of your go-to trusted news sources? [0] http://www.pigdog.org/in_the_pin…
Re: Larry Wall Unveils Perl 6.0.0
#169> Finally, there's a way to stop non-identical strings from matching just because they have the same numerical value. Um, this has been there for decades: $a = '123'; $b = '123.0'; print $a == $b ? 'y' : 'n'; # prints y print $a eq $b ? 'y' : 'n'; # prints n
I read it that way at first, and was going to comment on it, then I figured the point was smart match being able to distinguish, not being able to do your own test.
Re: Larry Wall Unveils Perl 6.0.0
#170I'm really surprised this site is the source y'all chose to upvote. Not only was the second-newest article published in 2012, they also have an assortment of other questionable content[0][1]. Advertising from rotten.com and a category named "Jonny Jihad" are also professional touches. I mean, whatever floats your boat, but HN, is this really one of your go-to trusted news sources? [0] http://www.pigdog.org/in_the_pin…
What source would you recommend?