Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Functional programming ?

by morgon (Priest)
on Apr 17, 2009 at 14:55 UTC ( [id://758261]=note: print w/replies, xml ) Need Help??


in reply to Functional programming ?

I have not thought too deeply on Monads in Perl but my impression is that you can only borrow some ideas and get an approximation to what Monads are in e.g. Haskell (the only programing language where they play a really prominent part).

The reason for this is that Perl lacks the proper type-system, so you cannot properly type e.g. the "bind"-operator and so every attempt to implement something like Monads just end up using (basically untyped) subs and so you loose all the benefits of compile-time type-checking.

Or what do you think?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-19 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found