I have a faint memory of being able to write an if statement in some language like this:
if (foobar == ("this" || "that"))
Instead of:
if (foobar == "this" || foobar == "that")
The latter is more verbose, and therefore less aesthetically appealing to me.
Is the former convention supported in any major languages? Is there a reason why this isn t widely supported?