Anonymous methods, blocks etc. (Cont. 'default block params')

M

Martin DeMello

Trans said:
Martin,

Ruby's model? I realize this is significant change, and not backwards
compatible.

I am suggesting lamda as true "define anonymous method". Since 'lambda'
means 'function' I do not think it neccesitates a meaning of 'object'.
You are playing with words. It is not unreasonable to require a
"dereference" to get a 1st class object --just as we do with methods.
And it has powerful ploymorphic usecase.

What I mean is, you're breaking the model of a lambda as a "first class
function" as opposed to an "anonymous method". In ruby, procs are
objects, methods are not. You're also breaking the definition of
'lambda' as used virtually everywhere. If this does happen, I hope it's
with a keyword other than lambda.

martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top