Syntax change: tolerating trailing comma #17
burakemir
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A new year, a new announcement - happy new year everyone!
Did you ever have to edit a large file with structured data definitions and had to "hunt" for syntax errors that came from trailing commas caused by refactorsing like reordering lines?
To do away with such productivity losses, Mangle now tolerates a trailing comma in lists, maps, structs etc.,. similar to what you might be used to from python and go.
You can now write something like this:
See the commit for changes to the grammar.
Beta Was this translation helpful? Give feedback.
All reactions