diff --git a/README.md b/README.md index 59ff8f1d..2f9ed56a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Rhai's current feature set: * Easy integration with Rust functions and data types * Fairly efficient (1 mil iterations in 0.75 sec on my 5 year old laptop) * Low compile-time overhead (~4 secs for debug build, ~11 secs for release build) -* Simple, easy-to-use language features +* Easy-to-use language based on JS+Rust * Support for overloaded functions * No additional dependencies * No unsafe code @@ -112,6 +112,8 @@ fn main() { } ``` +You can also see in this example how you can register multiple functions (or in this case multiple instances of the same function) to the same name in script. The scripting engine will handle looking up the correct function during function resolution. + # Example 4: Working with custom types and methods Here's an more complete example of working with Rust. First the example, then we'll break it into parts: