v1.9.0
A new minor release of ABS: always be shipping! 🚢
Optional chaining
You can now access objects' properties that don't exist safely (#297):
a?.b?.c?.d?.e()
Earlier, you needed to make sure all the properties in the chain existed, and simply using a.b.c.d.e()
could lead to an error.
env() improvements
We've added an optional argument to env()
that allows setting an environment variable (#305):
$ TEST=1 abs
Hello user, welcome to the ABS (1.9.0) programming language!
Type 'quit' when you're done, 'help' if you get lost!
⧐ env("TEST")
1
⧐ env("TEST", "123")
123
⧐ env("TEST")
123
⧐
Thanks @sysread!
Installed modules don't have the -master
suffix anymore
Earlier, modules were saved under /vendor/github.com/$REPO-master
directory.
Now they are saved under /vendor/github.com/$REPO
directory.
Thanks @mingwho!