On Friday, May 10, 2002, at 09:54 PM, Damian Conway wrote:
> That's getting a little ugly, so maybe we'd "lift" the syntax from
> Eiffel instead:
>
> method set_baz($newbaz is like($.baz)) { $.baz = $newbaz }
This is exactly what went through my mind about a half second after I
posted the message.
$newbaz is like($.baz), I would think, would have to raise a run-time
exception if $newbaz isn't "like" $.baz. Where would the exception be
handled, though? Inside the method/subroutine, or outside of its scope?