On Sat, Dec 27, 2014 at 10:53 PM, David Jeske <[email protected]> wrote: > To replace the above example with the visitor pattern would make the code > huge, slower, and hard to follow -- because the case-implementations would > have been spread far apart.
I was thinking the visitor pattern would be generated by a compiler from an exhaustive pattern match, so that solves the code size problem. You're probably right that it'd be very slow, since traversing a node could require two method dispatches of overhead. I don't see why the cases would be far apart; they all go in a single visitor class with nothing else in it. _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
