ngs-lang / ngs

Next Generation Shell (NGS)
https://ngs-lang.org/
GNU General Public License v3.0
1.41k stars 43 forks source link

Consider JavaScript-like syntax for Hash literals #505

Closed ilyash closed 1 year ago

ilyash commented 2 years ago

Current: Python-like syntax: {"a": 1} Suggested: {a: 1} Reason: shorter and cleaner for overwhelming amount of use cases

ilyash-b commented 1 year ago

Downside: {[expr]: value} or alike instead of {expr: value}. Closing for now. Reopen if needed.