Allow duplicated switch cases.
This commit is contained in:
@@ -14,10 +14,17 @@ New features
|
||||
Enhancements
|
||||
------------
|
||||
|
||||
### `switch` statement
|
||||
|
||||
* `switch` cases can now include multiple values separated by `|`.
|
||||
* Duplicated `switch` cases are now allowed.
|
||||
* The error `ParseErrorType::DuplicatedSwitchCase` is deprecated.
|
||||
* Ranges in `switch` statements that are small (currently no more than 16 items) are unrolled if possible.
|
||||
|
||||
### Others
|
||||
|
||||
* `EvalContext::eval_expression_tree_raw` and `Expression::eval_with_context_raw` are added to allow for not rewinding the `Scope` at the end of a statements block.
|
||||
* A new `range` function variant that takes an exclusive range with a step.
|
||||
* Ranges in `switch` statements that are small (currently no more than 16 items) are unrolled if possible.
|
||||
|
||||
|
||||
Version 1.8.0
|
||||
|
Reference in New Issue
Block a user