On Sunday, 25 October 2015 at 05:53:32 UTC, Rikki Cattermole wrote:
I'm pretty sure e.g. opEquals/opCmp should work here.
Shouldn't need to switch upon a primitive type. Theoretically could do it on a e.g. struct. Which has the special comparison that you want.

Hm...these are boolean operators. This means we can only compare two cases at a time, does it not? Negates the strength of a switch/pattern match, unless there's something I'm missing.

What are these variable length structs you mention, and their special comparisons? How would we use them?


Reply via email to