Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary Allow prefixing parameter names with `var`, to designate the parameter as being a `var` parameter. ## Details Type parameters cannot be inferred as `var`, and therefore it's effectively not possible to use the `=>` macro for creating anonymous procedures where the procedures needs `var` parameters. The `x: T` syntax does exist, but it applies to all preceding parameter, limiting its usefulness. To address the aforementioned shortcoming, the `var x` syntax is now supported (example: `(x, var y) => x`), assigning `var auto` as the respective parameter's type. Due a NimSkull syntax/parser limitation, `var x` cannot be used as the first parameter.
- Loading branch information