add symbol syntax

This commit is contained in:
Quentin Leonetti
2019-07-20 20:16:36 +02:00
parent 2574ad297b
commit 371615a899
2 changed files with 10 additions and 4 deletions

View File

@@ -1,11 +1,15 @@
; objects
(def ob {"a" 1 "b" 2})
(test "symbols" :a "a")
(echo (of ob "a"))
(def ob {:a "fantastic" :b 2})
((of (js) :console :log) ob)
(echo (of ob :a))
(echo (keys ob))
(echo (values ob))
(set ob "a" 4)
(echo (of ob "a"))
(set ob :a 4)
(echo (of ob :a))