Excerpts from Dmitry Karasik's message of Wed Jan 13 11:40:06 -0500 2010:
I thought that I should manipulate $meta, but I'm unsure how. Any ideas?
You wrote 'around x' in your example. Do you really mean around the accessor?
What if someone uses your trait with reader = 'get_x', writer =
Excerpts from Dmitry Karasik's message of Wed Jan 13 12:06:36 -0500 2010:
What if someone uses your trait with reader = 'get_x', writer = 'set_x'?
I don't know, it but wouldn't make sense in the context of that accessor
anyway.
It sounds like it would make perfect sense, given your example
On Wed, Jan 13, 2010 at 12:51:22PM -0500, Hans Dieter Pearcey wrote:
Read Moose::Meta::Attribute and Class::MOP::Attribute and all the method
metaclasses they use.
I have read it, and that's why I'm asking for help.
You are shooting yourself in the foot;
Yes, I want to shoot myself in
BTW, snottiness won't help.
I apologize if my text was interpreted as snottiness, that totally wasn't
intended. It's just, if I can't help, I don't criticize, especially if wasn't
asked. Sorry if anyone's offended.
--
Sincerely,
Dmitry Karasik
On Wed, Jan 13, 2010 at 02:09:46PM -0500, Hans Dieter Pearcey wrote:
Excerpts from Dmitry Karasik's message of Wed Jan 13 13:50:45 -0500 2010:
It's just, if I can't help, I don't criticize, especially if wasn't
asked.
You still aren't getting it. I (and several other people here) *can*
Excerpts from Dmitry Karasik's message of Wed Jan 13 14:29:45 -0500 2010:
You see, bad is subjective here, unless you want to persuade me that
TMTOWTDI
is bad too. I cook my object accessors the way *I* like them, raw and
dangerous
:), and even though I agree that this liking is subjective
Excerpts from Dmitry Karasik's message of Wed Jan 13 15:11:37 -0500 2010:
The fact that you put that in the same category as tabs vs. spaces makes
me
think that you're just trolling at this point.
I guess this puts nicely the end of the argument. Thank you for tolerance
and empathy.
For bystanders and future readers of this thread:
I've written MooseX::Lists [1] that implements what I wanted. If you want
that too, a simple thank you would be appropriate :)
[1]
http://karasik.eu.org/misc/MooseX-Lists-0.01.tar.gz
http://search.cpan.org/~karasik/MooseX-Lists/ (coming soon)
Excerpts from Dmitry Karasik's message of Wed Jan 13 17:47:06 -0500 2010:
I've written MooseX::Lists that implements what I wanted.
'isa' is potentially confusing, because you're using it differently from the
rest of Moose. You could
* rename 'isa' to something else (I have no good ideas)
*
'isa' is potentially confusing, because you're using it differently from the
rest of Moose. You could
* rename 'isa' to something else (I have no good ideas)
* have has_array and has_hash instead
* use isa = 'ArrayRef' and 'HashRef', as usual, and just add the around()
based on
On Thu, Jan 14, 2010 at 01:45:18AM +0100, Dmitry Karasik wrote:
...I have no idea how to work around these problems...
This means that I welcome patches and advices that would not only help me fix
the rest of incompatibilities for today, but also would be in sync with the
main ideology of
11 matches
Mail list logo