ABS 1.6.0: the convenience of index ranges and default return values

Here we are with a new release of ABS, the elegant programming language for all of your scripting needs!

Even though small, 1.6 (with 1.6.0 and 1.6.1) introduces a couple interesting features, so let’s check them out!

Index ranges

You can now access ranges within strings and arrays by using the popular [start:end] syntax: [1,2,3,4][0:2] will return [1,2].

Start and end can be ommitted — you could simplify the expression above with [1,2,3,4][:2].

Default return values

You can now simply use a return; at the end of a function, and it will return the default value null:

fn = f() {


Deprecation of $(…)

If you’ve followed ABS since its initial release, chances are you first used system commands through the $(command) syntax: we’ve now deprecated it and make sure the documentation reflects the fact that `command` is the standard, preferred way to run commands.

Now what?

Install ABS with a simple one-liner:

bash <(curl https://www.abs-lang.org/installer.sh)

…and start scripting like it’s 2019!

Hi there! I recently wrote an ebook on web application security, currently sold on leanpub, the Amazon Kindle store and gumroad.

It contains 150+ pages of content dedicated to securing web applications and improving your security awareness when building web apps, with chapters ranging from explaining how to secure HTTP cookies with the right flags to understanding why it is important to consider joining a bug bounty program.

Feel free to skim through some of the free chapters published on this blog and, if the content seems interesting enough to you, grab a copy on leanpub, the Amazon Kindle store, gumroad or simply checkout right down below!

Buy the Web Application Security ebook for $6.99

In the mood for some more reading?

...or check the archives.