erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.69k stars 55 forks source link

Enable shortened/normal mixed record definition #239

Closed ytoml closed 1 year ago

ytoml commented 1 year ago

Fixes #238.

Enable record definition in mixed style:

x = 1
z = 100
t = {x; y = 10; z}
print! t.x  # prints 1
print! t.y  # prints 10
print! t.z  # prints 100

@mtshiba

mtshiba commented 1 year ago

Thank you! I found another problem during the review, so I made a new issue.

240