-
|
Right now it returns This code will compile without issues, and the value stored in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @simplepad, I took a look at the commit history of |
Beta Was this translation helpful? Give feedback.
Hi @simplepad, I took a look at the commit history of
findand I didn't find a good reason for returning a-1. I agreenullis a better return type to indicatenot 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.