move-delegation-to-attr
[gitmo/Moose.git] / TODO
1 -------------------------------------------------------------------------------
2 TODO
3 -------------------------------------------------------------------------------
4
5 - roles
6
7 Need to figure out the details of composite roles
8
9 - type unions
10
11 Add support for doing it with Classes which do not have 
12 a type constraint yet created
13
14 - type intersections
15
16 Mostly just for Roles
17
18 - inherited slot specs
19
20 [10:49] stevan  does can be added to,.. but not changed
21
22 - triggers
23
24 [18:18] mst     what I'd really like is just to say trigger => 'some_method'
25
26 - attribute delgates
27
28 Introduce capability to control the generated wrapper. Useful for when you have
29 a wrapper that should implement the interface of it's child, but decorate with
30 more metadata.
31
32 - proxy attributes
33
34 [15:49]         stevan  you want a proxied attribute
35 [15:49]         stevan  which looks like an attribute, 
36                     talks like an attribute, smells 
37                     like an attribute,.. but if you 
38                     look behind the curtain,.. its 
39                     over there.. in that other object
40
41 - compile time extends
42
43 [00:39]         sri         but maybe a better syntax for compile time extends
44 [00:39]         stevan  I have been pondering that actually
45 [00:39]         sri         use Moose extends => Foo::Bar
46 [00:40]         stevan  I think now that we have the Sub::Exporter stuff 
47                     in, that kinda thing should be pretty easy
48
49 nothingmuch notes that all the constructs should be supported in the entirety of the use clause:
50
51     use Moose (
52         has => foo (
53             ....
54         ),
55     );
56
57 and that if this usage style is used nothing is exported to the namespace.
58
59 - default should dclone()
60
61 - subtype $anon_subtype => where { ... }
62
63 [22:56]         stevan  sub mst_doesnt_like_to_type { (shift)->meta->attr->type_contstraint }
64 [22:57]         mst     err
65 [22:57]         stevan  :P
66 [22:57]         stevan  are you wanting to reuse it or something?
67 [22:57]         stevan  my $subtype = subtype 'Something' => where { ... };
68 [22:58]         stevan  then you can do isa => $subtype 
69 [22:58]         mst     but I can't subtype it again
70 [22:59]         stevan  mst: ahhh... 
71 [22:59]         mst     well, I can. but it suddenly gets very "long way round" ish
72 [23:00]         stevan  my $constraint = Moose::Meta::TypeConstraint->new(
73 [23:00]         stevan              name       => $name || '__ANON__',
74 [23:00]         stevan              parent     => $parent,            
75 [23:00]         stevan              constraint => $check,       
76 [23:00]         stevan              message    => $message,    
77 [23:00]         stevan          );
78 [23:00]         stevan  yeah thats kinda the long way
79 [23:00]         stevan  mst: what would you like it to be?
80 [23:00]         mst     $parent = find_type_constraint($parent) if defined $parent;
81 [23:00]         mst     if $parent is already a type constraint
82 [23:00]         mst     skip that bit
83 [23:00]         stevan  hmm
84 [23:00]         mst     should be all you need to change
85 [23:00]         stevan  yeah
86 [23:01]         stevan  so you can then say 
87 [23:01]         stevan  subtype $anon => where { ... };
88 [23:01]         mst     right
89 [23:01]         stevan  ok
90
91 - method keyword
92
93 [23:37]         mst     more seriously, I'd still like a "method" keyword or something
94 [23:37]         mst     method 'foo' => sub { ... };
95 [23:38]         stevan  what would it do more than sub foo { ... }?
96 [23:39]         stevan  I would like multimethods actually
97 [23:39]         mst     almost exactly nothing, to begin with
98 [23:39]         stevan  but thats just cause I love CLOS and am reading a book on Dylan now
99 [23:40]         stevan  keyword squating :)
100 [23:40]         mst     but if we need to hook stuff later it's bloody handy to already have people writing it that way
101 [23:40]         mst     right
102 ...
103 [23:49]         mst     oh, also: method 'has' => sub { ... } could squelch the redefine warning
104
105 -------------------------------------------------------------------------------
106 TO PONDER
107 -------------------------------------------------------------------------------
108
109 - Moose "strict" mode
110
111 use Moose 'strict'; This would allow us to have all sort of expensive tests
112 which can be turned off in prod.     
113         
114 - Moose::Philosophy.pod
115
116 To explain Moose from a very high level
117
118 - moosedoc
119
120 We certainly have enough meta-information to make pretty complete POD docs.
121         
122         
123