This repository was archived by the owner on Mar 20, 2025. It is now read-only.
Underscore for node value access? #18
berwynhoyt
started this conversation in
Polls
Replies: 1 comment 5 replies
-
See the relevant pull-request and explanation here. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How shall we distinguish node value access from node subscript? Which does
node.value
do?We have determined that we can use Lua's colon operator
node:data()
to distinguish methods from thenode.data
subnode (though it is slow because it creates a superfluous subnodenode.data
object and then invokes that withself
whereupon it realizes that it has to return node's value instead).1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions