xiazcy commented on code in PR #3211: URL: https://github.com/apache/tinkerpop/pull/3211#discussion_r2453537037
########## docs/src/reference/gremlin-variants.asciidoc: ########## @@ -1369,6 +1369,30 @@ java -cp target/run-examples-shaded.jar examples.BasicGremlin java -cp target/run-examples-shaded.jar examples.ModernTraversals ---- +[[gremlin-java-differences]] +=== Differences + +Gremlin-Java provides additional syntactic sugar that leverages Java's type system. Most notably, the `P.typeOf()` +predicate accepts Java `Class` objects directly, providing a more natural and type-safe way to perform type checking: + +[source,java] Review Comment: Updated. ########## docs/src/reference/gremlin-variants.asciidoc: ########## @@ -1369,6 +1369,30 @@ java -cp target/run-examples-shaded.jar examples.BasicGremlin java -cp target/run-examples-shaded.jar examples.ModernTraversals ---- +[[gremlin-java-differences]] +=== Differences + +Gremlin-Java provides additional syntactic sugar that leverages Java's type system. Most notably, the `P.typeOf()` Review Comment: Updated. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
