add suggestions for certain creators
git's CLI gives helpful suggestions for non existent commands.
- expr functions. If someone types
[fmod]the error could add
did 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~".
- warning for numbers and lists inside object boxes. E.g., for
warning: 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.