Skip to content
Discussion options

You must be logged in to vote

Hi @simplepad, I took a look at the commit history of find and I didn't find a good reason for returning a -1. I agree null is a better return type to indicate not found. If you (or someone else) is interested in implementing the change, we will need a deprecation first and a diagnostic warning. In the next next version, we can change it and delete the warning.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vrl: stdlib Changes to the standard library type: tech debt A code change that does not add user value
2 participants