Larry Wall skribis 2005-03-15 11:20 (-0800): > On Tue, Mar 15, 2005 at 07:47:58PM +0100, Juerd wrote: > : Rod Adams skribis 2005-03-15 12:44 (-0600): > : > %x.delete('foo'); > : > if %x.exists('foo') { ... } > : Would renaming exists to has or hasa be a good idea, if it does indeed > : exist only in method form? > I'd think that would be asking if the array has an *attribute* of > that name. Perl 6 objects aren't hashes...
That makes sense. I think %x ~~ 'foo' will be used more than %x.exists('foo') anyway. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html