Damian Conway <[EMAIL PROTECTED]> writes: > Larry wrote: > >> All other things being equal, I think people will find modal operators >> more confusing than if we just make separate operators. > > Agreed. > > >> That being said, I'm still wondering whether we can finesse it. > > We can get close. But that might actually be counterproductive. > > > > Damian's default any() semantics in numeric context select a random element. > > And I'd like to change that please! If superpositions are fundamental to the > language, we can integrate them properly with the language. So instead of: > > @array[1|2|3] > > randomly selecting element 1 or 2 or 3, this expression would return > > any( @array[1,2,3] ) > > thereby propagating the superpositional nature of the index.
Yup. If this doesn't happen some of the weirder non deterministic algorithms I've been thinking about won't work properly, and that would be bad. -- Piers "It is a truth universally acknowledged that a language in possession of a rich syntax must be in need of a rewrite." -- Jane Austen?