【suggestion】adding more attributes to be queried for nbt/function value.
17183248569 opened this issue · 0 comments
some value has too less attributes to be queried.
for example,nbt value and function value have almost nothing.
i come up with this:
nbtobj~'nbt_type' //'compound'/'short'/'list'. null if it is not a nbt value
nbtcompoundobj~'keys' //a list of keys
nbtobj~'nbt_type_child' //{'keyA'->'long','keyB'->'compound'}for a compound, or 'long' for a list. 'end' if the list is empty.
functionobj~'arguments'
functionobj~[a,list,of,arguments] //call(functionobj,a,list,of,arguments)
The last one is my hope for adding a syntactic sugar to function objects to make them able to be called easily.
Maybe it would be better to use functionobj:[a,list] or functionobj<=[a,list].
I'm afraid that the direct use of f() would be too much of a strike against the present syntax.