Michael G Schwern wrote:
> Second, and perhaps more importantly, we can do this perfectly well
> with a module. No hacks, no tricks, no filters.
> Class::Object uses the mini-class technique (ie. auto-generated
> classes
Sorry, that sounds like a hack/trick if ever there was one.
I would sure hope there would be a cleaner way to do it in
perl6, if it's not part of the core language.
It's also not without its faults. Having every instance of a
class have different values of ref() could be obnoxious, for
example.
> The rule of thumb has always been if you can do it in a module, don't
> put it in the core.
No, that's a lousy rule of thumb. The tradeoffs must be considered.
Otherwise we'd have Forth. (Or Lisp, ca. 1960.)
--
John Porter