strawman:catchalls?

Peter Michaux petermichaux at gmail.com
Tue Nov 18 22:19:46 PST 2008


I don't see anything in the strawman wiki pages about a catchall
method for an object. I think this is something that is really missing
from the language and would substantially change the way some programs
are structured.

The only ways I know of to currently get the equivalent behavior to a
catch-all now is to either make objects as functions of their
messages, or to make a "send" function. Both of these options mean
leaving the standard object.message(a, b, c) message-passing syntax
behind and use object("message", a, b, c) or send(object, "message",
a, b, c) syntax. Both of these are substantially slower (though
infinitely and enjoyably flexible.)

Are catchalls candidates to be added to the strawman pages?

Peter


More information about the Es-discuss mailing list