On Sat, Apr 02, 2005 at 11:06:01AM +0200, Juerd wrote: : Is your view of the world like Python or like Perl 5?
Them's fightin' words. :-) : Values have no identity in Perl 5. That's slightly not true, insofar as Perl 5 distinguishes hash keys by value (albeit filtered through stringification). : Containers (variables, named or : anonymous) do. That also means that even though $foo = 5 and $bar = 5, : \$foo != \$bar. In Python, with foo = 5 and bar = 5, that means id(foo) : == id(bar), but I don't like that at all. On the other hand, it would be nice to have an operator that tells you if two things would be considered the same hash thing if handed to a hash of shape(Any). That's how I think of =:=. If that's more like Python and less like Perl 5, I don't care. I'm trying to make Perl 6 like Perl 6, not like anything else. Objects are by default unique, but any particular class of objects (including value types) is allowed to define its own idea of uniqueness. Unique identity is precisely what we're looking for in a hash key, whether we stringify it or not. Larry