HaloO, Larry Wall wrote:
[..] but since sets are immutable values,
Does that imply they travel in $vars and are a subtype of Value? Is Undef of Set the Set::Empty? Is Set::Empty false?
we need only provide an alternate comparison to the constructor, and the set itself needn't remember it. On the other hand, hashes behaving like mutable sets need to remember their comparison operator if it is not the default.
The slot accessor paradigma again... Isn't the comparator a free method subtype? Why interfering at construction time? -- $TSa.greeting := "HaloO"; # mind the echo!