It would be nice to have a way to indicate that a function's float parameter may never be NaN or Inf, and throw an exception when that is the case. Currently I am doing this using a lot of extra lines in the function bodies, but I feel like this would make a good feature in Angelscript's declarations itself.
I'm not sure what the syntax would be, but maybe some keyword similar to “const”, maybe “finite”?
void SomeFunction(finite float x) { .. }
Does any other language have something like this that can be inspired from?