On Fri, May 10, 2002 at 11:27:53PM -0400, Chris Dutton wrote:
>
> 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.
I've always found the word "like" to be very wishy-washy in a computer
langauge. In what way is newbaz like baz? And just how alike are they?
There must be a better way to describe this.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net