Skip to content

Commit 10378a7

Browse files
committed
docs
1 parent 352312a commit 10378a7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/src/dev/developer/for-committers.asciidoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,16 @@ presented here.
427427
428428
vp[marko-name->marko]
429429
430+
When using this syntax, it is important to remember that lists and sets may contain other lists or sets as elements,
431+
allowing for nested collection notation such as `l[l[d[1].i,d[2].i],l[d[3].i,d[4].i]]`. The step definitions across all
432+
language variants parse these correctly by tracking bracket depth so that commas inside inner brackets are not treated
433+
as top-level separators. However, mixed-type nesting is not supported — a list or set may not contain a map as a direct
434+
element (e.g. `l[m[{"name":"marko"}]]` will not parse correctly). This limitation exists because the type notation
435+
matchers are applied in order using substring matching, and the `m[...]` matcher fires before `l[...]` on the outer
436+
value, causing the map pattern to consume part of the surrounding bracket syntax. Same-type nesting (list-of-lists,
437+
set-of-sets) and nesting of scalar types (vertices, edges, numbers, strings) inside lists or sets works as
438+
expected.
439+
430440
In addition, parameter names should adhere to a common form as they hold some meaning to certain language variant
431441
implementations:
432442

0 commit comments

Comments
 (0)