add suggestions for certain creators
git's CLI gives helpful suggestions for non existent commands.
Some examples:
- expr functions. If someone types
[fmod]
the error could adddid you mean "expr fmod($f1, x)"
where x is the argument they supplied. Same for all the expr functions that don't have a creator. - a selection of common max/msp classes. E.g.,
did you mean "osc~"
for "cycle~".
Also:
- warning for numbers and lists inside object boxes. E.g., for
[1]
givewarning: did you mean "[float 1]"?
That would improve the UX without adding much text to errors.
The actual text of the message is just an example and could be tweaked.
If some external lib adds a creator for any of these then of course that would supercede the error so that shouldn't be a problem.