Skip to content

Optional Commas

Shane Brinkman-Davis Delamore edited this page Apr 5, 2017 · 1 revision

Value Lists

Value-Lists are used in:

Optional Commas in One-Liner-Value-Lists

In all these cases, commas are optional:

a = 1 2 3
b = red: #f00  green: #0f0  blue: #00f
c = functionTaking4Strings :the :quick :brown :fox

Optional Commas in Value-Lists Blocks

foo
  a,  # optional comma function-invocation block
  b
# foo(a, b)

c = 
  a,  # optional comma in implicit array-literal
  b
# c = [a, b]
Clone this wiki locally