I know you can overload an existing operator. I want to know if it is possible to create a new operator. Here's my scenario.
I want this:
var x = (y < z) ? y : z;
To be equivalent to this:
var x = y <? z;
In other words, I would like to create my own <?
operator.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…