David Storrs <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 28, 2005 at 03:28:41PM +0200, Ingo Blechschmidt wrote:
> > so we had junctions of Code references some days ago, what's with
> > junctions of Class and Role objects? :)
>
> Could we see some code that shows why this is a good idea? My initial
> reaction is horror; I can very easily see huge numbers of subtle,
> hard-to-reproduce bugs coming out of this. On the other hand, I do
> not immediately see major applications...most of what I can see is
> things that reduce the amount of code needed, but don't actually
> accomplish anything fundamentally new. What do junctions of
> Class|Role objects give us that can't be achieved in other ways?
>
> I'm quite willing to believe that there are such things, but I'm not
> coming up with them.
What do you think this is?
sub foo(Str | Int $bar) { ... }
Or this one, which is even more important?
sub foo(Any | Junction $bar) { ... }
--
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
"I used to have a life, but I liked mail-reading so much better."