[Grace-core] More on Case

James Noble kjx at ecs.vuw.ac.nz
Sun Feb 20 17:35:54 PST 2011


> I've tried to start to capture what I think is some brilliant  
> thinking (!) on case.  It's not yet finished — I need to add  
> examples.  But I have a start.  Please tell me how great you think  
> it is ... or not.

OK...
I'll look most likely later today

> https://projects.cecs.pdx.edu:8443/~black/NewOOL/index.cgi/wiki/ 
> AnotherTakeOnCase

how much is this on the *implementation* side
vs how much in the language.

I think case & pattern have to double-dispatch, in general.

going to the object first lets the object decline to participate in  
pattern matches.
going to the pattern first makes irrefutable patterns easier.

J


More information about the Grace-core mailing list