diatom 0.5.2

The diatom programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
a = {print = print}

-- call print as method
-- this will print `a` because a is implicitly
-- passed as the first parameter
a.print()

-- call print as static method
-- This will not print `a`
a::print('parameters here')

-- This will not work for tuple
a = (1, print)
-- `a` is not passed as parameter
a.1('parameters here')