Skip to content

v5.0.1

Compare
Choose a tag to compare
@sauerbraten sauerbraten released this 12 Aug 11:20
· 55 commits to master since this release

Bugfix release: When using discard syntax in a simple "let" assignment, i.e. one where the right side does not return an optional second value like a map lookup for example, the right side wasn't evaluated. For example, these all worked as expected and the right side was evaluated:

_ := myMap["foo"]
_ = myMap["foo"]

_, ok := myMap["foo"]
_, ok = myMap["foo"]

_ = foo()

But this did not actually execute foo():

_ := foo()

f67efbc fixes this case and is the only commit in v5.0.1 that isn't in v5.0.0.