A user recently posted this example from the Gremlin documentation:
g.V().hasLabel(‘person’).choose(values(‘age’)).option(27,_in()).option(32,_.
out()).values(‘name’) [apologies for the line wrap]
which returned:
“No such property: _ for class: Script121”
Marko Rodriguez responded:
Its a double underscore, not a single underscore.
__ vs. _
I mention this to benefit beginning Gremlin users who haven’t developed an underscore stutter but also as a plea for sanity in syntax design.
It’s is easy to type two successive underscores but the obviousness of a double underscore versus a single underscore depends on local typography.
To say nothing that what might be obvious to the eyes of a twenty-something may not be as obvious to the eyes of a fifty-something+.
In syntax design, answer the question:
Do you want to be clever or clear?