I've run into times where a proc is most naturally expressed as an operator,
for example, something like a signed modulus, or checking if a point is in a
polygon defined by an array of points (as opposed to checking if the point is
in that array). I know there's ways around most of these issues, but I do think
it would be nice to have the backtick syntax define custom operators even if
the proc name is not purely symbols. For example, this would make something like
func `sgnmod`(i : int, r : (int, int)) : int = # Implements a signed modulo
# logic here
echo 7 sgnmod (-1, 4) # This line would not work at the moment
Run
possible