Skip to content

add complete? ion syntax by example

Jeremy Soller requested to merge GlenDC:master into master

Created by: GlenDC

This is my attempt to providing a syntax overview of Ion, by example.

Inspired by http://learnxinyminutes.com, a website I use for quickly getting an overview of the syntax, as the start of learning a new language.

@jackpot51 I think this shows all the capabilities of Ion as it is right now, but feel free to comment or ammend commits in case there is some obvious stuff missing.

Stuff that was missing (or I don't know how to do it) that I was surprised about:

  • No arithmetic (e.g. in bash: ((2 + 4)));
  • Cannot assign the output of a command to an Ion variable;
  • No dictionary and array collection types available for use;
  • No complex curly bracket expansion as bash provides (e.g. {1..10}, ${variable:1:10});

Merge request reports