Improvement in documentation #6611
Closed
n-gram-hub
started this conversation in
General Discussions
Replies: 2 comments 16 replies
-
I don't think this is needed, if nothing else is said one should assume equality is used rather than anything else, it says "searches for a value" |
Beta Was this translation helpful? Give feedback.
14 replies
-
There is however a pitfall that the documentation of |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, in a Godot forum, I posted a function where I use the
PackedVector2Array
find method. The method searches for equal vectors and vectors can contain floats. I supposed this method was safe to use even becausePackedVector2Array
has nois_equal_approx
method. But old users warned me not to use this method because maybe (maybe) the engine uses equals with floats, which can cause unpredictable results.So I'm here to ask you to specify in every corner of the docs what it is safe to use and what it is not: as a user, I can't say what the implementation of a method is like.
Beta Was this translation helpful? Give feedback.
All reactions