jameskeane / ham-script

An altJS language for the web
Other
31 stars 1 forks source link

Empty Function/Object Ambiguity #2

Open alexispurslane opened 10 years ago

alexispurslane commented 10 years ago

In the TODO file, it says that there is some ambiguity between an empty function and an empty object. I think that we could solve this by doing sort of what Apple's Swift language does:

var array = []
var dictionary = [:]

So I propose that for an empty object, we could use {:}.