So the reason I’m suspicious of this, and think it would be totally reasonable if we simply disallowed it is that if you use a STRING mapped enum, which I frankly think makes more sense most of the time, then < would be doing an alphabetic string comparison, which simply doesn’t seem like it could ever be meaningful. I guess it sorta might make sense for some ORDINAL mappings, but even that is pretty doubtful. So I guess my vote would be to disallow this with a more meaningful error, but I would not strongly object to allowing it only for ordinal-mapped enums. |