[Grace-core] Minutes of Teleconference 2013-07-24

Marco Servetto marco.servetto at gmail.com
Tue Jul 30 11:52:32 PDT 2013


May be i'm completelly out of mind, but if to solve this we use
multiple dispatch?
i.e.
iterable.apply0(block) expect a no arg block
iterable.apply1(block) expect a 1 arg block
iterable.apply2(block) expect a 2 arg block

iterable.iterate(block)= block.acceptIterator(iterable)

where the different types of blocks call different applyes...
As you see, API design does not influence language design, at least in
this case.


More information about the Grace-core mailing list