Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Be more forgiving for missing semicolon at the end-of-a-statement. Especially after a "block" it is not obvious that a semicolon is required to end the statement.
For example:
The code above used to return with an error as a semicolon is missing after the
for..in
statement. This pull request solves this by being more forgiving.Warning: With this change, a code block should no longer accept a direct followup as for example indexing or applying functions.
For example:
The code above used to return
10
as this is the length of range 10 in the code block above. The new syntax would return the length of the collection, as it sees.len();
as a new statement.To get the
10
like before, we now have to wrap the code in parenthesis, like this:The same is true for not (!) or sign (+/-) conversions, thus:
will raise an error (It will try to parse the code block as a thing...). As a fix, the code block can be wrapped in parenthesis.