Hello,
Over the years, I've seen lots of people complain about the return of "null" for void methods. For instance:
gremlin> aVoidMethod()
==>null
gremlin> null
==>null
gremlin> [1,2,null,4]
==>1
==>2
==>null
==>4
I was thinking that we could change the behavior of the Gremlin Console such that a single null is:
gremlin> aVoidMethod()
gremlin> null
gremlin> [1,2,null,4]
==>1
==>2
==>null
==>4
There are mixed feelings from the developers so I thought we could ask the community. The strongest case for keeping "==>null" is from Daniel Kuppitz who realized that it looks like a compilation error -- multi-line queries return "empty" like that. Perhaps we can figure out a way to have multi-line statements do…..?:
gremlin> g.V.
outE.
values('weight')
instead of the current:
gremlin> values('weight')
Thoughts?,
Marko.