Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Focussing Haskell into Perl 6

by DrForr (Beadle)
on Feb 04, 2016 at 13:24 UTC ( [id://1154391]=note: print w/replies, xml ) Need Help??


in reply to Focussing Haskell into Perl 6

Apparently dashes in variable names in Perl 6 are terribly controversial, "extra work" for programmers. I can see how forcing your shift-fingers not to press down is a bit of extra work, but believe it or not, you get used to it.

They've been the standard in functional languages for decades, so there is a great deal of prior art. And surely Perl programmers are among the elite few that can actually change the regular expression their chosen tool uses to highlight and select identifiers, we've already added $@%&* to the front.

Yes, this could have been done with simple method calls, but the original Haskell docs created their own syntax, and in Perl 6 we're free to create our own syntax as well. If as a programmer you want to stick to the same set of operators that's been in use since what, 1989 or even earlier, if you count the inheritance from all the way back in FORTRAM, feel free.

And yes, there are modules on CPAN that handle date formatting, and date conversion. This is not CPAN code, as the distinct lack of '->' and the use of custom operators such as '=<' should make clear. With this posting I'm merely experimenting with how to transform data reversibly from one format into the other, and in the process of reading the original Haskell document I came up with what I thought was a neat way to describe the bonding.

If it wasn't abundantly clear earlier, this isn't even so much as a proof of concept. I have a test suite that fails because I haven't created the operators, and a lib/Optical/Bench.pm that is a hollow shell consisting of nothing but documentation. I know there's a lot of ill will toward Perl 6 out there in the community, and people use it as a scapegoat for Perl's decline over the last 10 years rather than pointing to the fact that PHP took over the Apache market because it was easier to install or any number of reasons.

I happen to like what I've played with of the language as it addresses many of the concerns I've had with Perl5 over the years, and am willing to embrace its flaws. Those of you that aren't willing to approach perl 6 with an open mind are more than welcome to your opinion, but please don't criticize language features that you're not willing to take the time to understand. Not that it'll stop you, mere words won't do that.

Replies are listed 'Best First'.
Re^2: Focussing Haskell into Perl 6
by Laurent_R (Canon) on Feb 05, 2016 at 18:44 UTC
    I know there's a lot of ill will toward Perl 6 out there in the community...
    There was a lot of ill will toward Perl 6 out there in the community, and there may still be some ill will today, but much less than, say, two years ago, because the Perl 6 team has finally delivered something more or less up to the expectations, something that is great anyway.

    I am personally enthusiastic about Perl 6 (and I have written several tutorials and articles about it in French over the past two years or so -- all together about 300 pages of material), but I must say that there were some moments in the past where I was starting to have some serious doubts about Perl 6 going to go anywhere at the time, because it took so long to get out.

    As for the rest of your post, I guess that I would need to take the time to look at the Haskell lens module you're referring to in order to really understand what your posts are about. I haven't done that yet.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1154391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found