This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new f8e64f8728 Clarify discard() historical note now that none() names a 
different step
f8e64f8728 is described below

commit f8e64f8728e425b0e1e1a3e5469673c144485785
Author: Stephen Mallette <[email protected]>
AuthorDate: Fri Sep 25 00:17:23 2026 +0000

    Clarify discard() historical note now that none() names a different step
    
    The discard() semantics section noted only that the step was formerly
    named none() prior to 3.8.0. That name has since been reassigned to an
    unrelated list filter step that requires a predicate argument, so a bare
    none() no longer discards traversers. Move the historical note into the
    Considerations prose, explain the reassignment, and cross-reference the
    current none() step so providers are not misled into expecting the old
    behavior.
    
    Assisted-by: Kiro:claude-opus-4.8
---
 docs/src/dev/provider/gremlin-semantics.asciidoc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/docs/src/dev/provider/gremlin-semantics.asciidoc 
b/docs/src/dev/provider/gremlin-semantics.asciidoc
index c8f6c7a381..d15ee2c600 100644
--- a/docs/src/dev/provider/gremlin-semantics.asciidoc
+++ b/docs/src/dev/provider/gremlin-semantics.asciidoc
@@ -1702,7 +1702,7 @@ 
link:https://tinkerpop.apache.org/docs/x.y.z/reference/#difference-step[referenc
 [[discard-step]]
 === discard()
 
-*Description:* Filters all traversers out of the traversal stream. Formerly 
named `none()` prior to 3.8.0.
+*Description:* Filters all traversers out of the traversal stream.
 
 *Syntax:* `discard()`
 
@@ -1726,6 +1726,11 @@ The `discard()` step is a filter step that removes every 
traverser, always produ
 used to consume a traversal purely for its side effects (for example after an 
`aggregate()` or a mutation) without
 returning any objects.
 
+This step was named `none()` prior to 3.8.0. The name `none()` has since been 
reassigned to an unrelated list filter
+step that tests each item of a list against a supplied predicate and therefore 
requires a predicate argument. A bare
+`none()` no longer discards traversers and raises an error, so `discard()` is 
the step to use for that behavior. See the
+<<none-step,`none()`>> step for its current semantics.
+
 *Exceptions*
 
 None

Reply via email to