Update README.md

This commit is contained in:
Jonathan Turner 2016-03-03 10:14:11 -05:00
parent 906ee14138
commit 3e70879eae

View File

@ -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: