1 -------------------------------------------------------------------------------
3 -------------------------------------------------------------------------------
5 mst: if I do "subtype 'Foo' => as 'Bar';" I get an empty condition and it dies
7 -------------------------------------------------------------------------------
9 -------------------------------------------------------------------------------
13 Add support for doing it with Classes which do not have
14 a type constraint yet created
20 - inherited slot specs
22 'does' can be added to,.. but not changed
23 (need type unions for this)
27 a proxied attribute is an attribute
28 which looks like an attribute,
29 talks like an attribute, smells
30 like an attribute,.. but if you
31 look behind the curtain,.. its
32 over there.. in that other object
34 (... probably be a custom metaclass)
36 - compile time extends
38 [00:39] sri but maybe a better syntax for compile time extends
39 [00:39] stevan I have been pondering that actually
40 [00:39] sri use Moose extends => Foo::Bar
41 [00:40] stevan I think now that we have the Sub::Exporter stuff
42 in, that kinda thing should be pretty easy
44 nothingmuch notes that all the constructs should be supported in the entirety of the use clause:
52 and that if this usage style is used nothing is exported to the namespace.
54 - default should dclone()
56 - subtype $anon_subtype => where { ... }
58 [22:56] stevan sub mst_doesnt_like_to_type { (shift)->meta->attr->type_contstraint }
61 [22:57] stevan are you wanting to reuse it or something?
62 [22:57] stevan my $subtype = subtype 'Something' => where { ... };
63 [22:58] stevan then you can do isa => $subtype
64 [22:58] mst but I can't subtype it again
65 [22:59] stevan mst: ahhh...
66 [22:59] mst well, I can. but it suddenly gets very "long way round" ish
67 [23:00] stevan my $constraint = Moose::Meta::TypeConstraint->new(
68 [23:00] stevan name => $name || '__ANON__',
69 [23:00] stevan parent => $parent,
70 [23:00] stevan constraint => $check,
71 [23:00] stevan message => $message,
73 [23:00] stevan yeah thats kinda the long way
74 [23:00] stevan mst: what would you like it to be?
75 [23:00] mst $parent = find_type_constraint($parent) if defined $parent;
76 [23:00] mst if $parent is already a type constraint
77 [23:00] mst skip that bit
79 [23:00] mst should be all you need to change
81 [23:01] stevan so you can then say
82 [23:01] stevan subtype $anon => where { ... };
88 [23:37] mst more seriously, I'd still like a "method" keyword or something
89 [23:37] mst method 'foo' => sub { ... };
90 [23:38] stevan what would it do more than sub foo { ... }?
91 [23:39] stevan I would like multimethods actually
92 [23:39] mst almost exactly nothing, to begin with
93 [23:39] stevan but thats just cause I love CLOS and am reading a book on Dylan now
94 [23:40] stevan keyword squating :)
95 [23:40] mst but if we need to hook stuff later it's bloody handy to already have people writing it that way
98 [23:49] mst oh, also: method 'has' => sub { ... } could squelch the redefine warning
100 -------------------------------------------------------------------------------
102 -------------------------------------------------------------------------------
104 - Moose "strict" mode
106 use Moose 'strict'; This would allow us to have all sort of expensive tests
107 which can be turned off in prod.
109 - Moose::Philosophy.pod
111 To explain Moose from a very high level
115 We certainly have enough meta-information to make pretty complete POD docs.