|
|
|
|
|
by bakery2k
2308 days ago
|
|
The Wren scripting language supports this kind of "overloading by arity" [0]. Wren therefore allows overloads such as `range(stop)` and `range(start, stop)`. This is more intuitive than Python's `range(start=0, stop)`, which might be the only function in the language that has an optional parameter before a required one. [0] http://wren.io/method-calls.html |
|
The documentation shows it as being overloaded, rather than having default arguments:
There's iter which is overloaded: