3 ms·
In my understanding Mouse is to become irrelevant someday, as Moose goes forward.
by wazoox 17y ago
In my understanding Mouse is to become irrelevant someday, as Moose goes forward.
- zrail 17y agoYes, I'm sure it is, just as Moose will become irrelevant when perl 6 becomes widespread. However, right now it's pretty handy if you have something where startup time matters and you don't mind giving up some of the deeper features of Moose.
- msbarnett 17y agoFrom what I've heard the future lies with Squirrel, unless Moose manages to pull a rabbit out of its hat.
- zrail 17y agoSquirrel is actually deprecated in favor of Any::Moose. They basically do the same thing except Any::Moose decides to use Mouse or Moose once, where as Squirrel will attempt to do it every time it's imported.
- autarch 17y agoThat's the long-term goal, but to make that happen is pretty hard. One possibility is implementing some sort of XS for all Moose core features, and using XS to implement Moose-based classes (Mouse already does this). Another project which has been worked on, but has somewhat stalled, is a Moose "compiler" which would generate .pmc files for your classes. Unless you used the meta-model at runtime (most code doesn't), you'd never even need to load Moose. Patches welcome, of course. If anyone's interested in these projects, join us at irc://irc.perl.org/#moose to discuss then.