schungx / rhai

Rhai - An embedded scripting language for Rust [dev repo, may regularly force-push, pull from https://github.com/rhaiscript/rhai for a stable build]
https://github.com/rhaiscript/rhai
Apache License 2.0
9 stars 3 forks source link

Convert args length check to debug assert #35

Closed jhwgh1968 closed 4 years ago

jhwgh1968 commented 4 years ago

The optimization @schungx has been waiting for! :tada:

I didn't eliminate it completely, because my experience tells me it will make some nasty bugs very difficult to catch. For example, when (in the distant future) I implement support for variadic functions.