Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Functional programming ?

by morgon (Priest)
on Apr 17, 2009 at 14:55 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2022-05-23 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?