Hi Ryan,

I agree with your suggestion here. The current none() step is not widely used I 
think it makes sense to rename it, if the `none` name is more useful elsewhere.

Thanks,

Cole

From: Ryan Tan <ryanmt...@gmail.com>
Date: Tuesday, November 28, 2023 at 11:11 PM
To: dev@tinkerpop.apache.org <dev@tinkerpop.apache.org>
Subject: [DISCUSS] Renaming of none() to discard() and introducing none() as a 
list filtering step
Hi everyone,

I've been working on implementing the none step proposed here
<https://github.com/apache/tinkerpop/blob/master/docs/src/dev/future/proposal-3-remove-closures.asciidoc#none>,
which is a list filtering step that passes lists with no elements matching
the predicate.

As part of this addition, I propose that we deprecate the existing none()
step and rename it to discard().  This would make more sense as the current
none() is primarily used by iterate() to discard the results of a traversal
in remote contexts.  If there are no objections I'll be opening a PR soon
with these changes.

Thanks,

Ryan Tan
Warning: The sender of this message could not be validated and may not be the 
actual sender.

Reply via email to