New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use of '_' as an identifier might not be supported in releases after Java SE 8 #1
Comments
What character may be used for replacement _? :) |
Well, the reasoning behind using _ in js is that it is a short identifier. However, in java we have static imports. So, we can name the static class whatever we want, import it, and have all the functions in the global namespace. I was thinking something like Functional. So you can do: Functional.each(collection, item-> {}); or, you can do: import static Functional each(collection, item->{}); Edit: you can even name it Underscore. Silly me. :D |
Underscore is a good name for the class. I will prepare a pull request. |
'_' was changed with '$' 👍 |
$ was changed with U. |
U was changed with Underscore. |
Hi,
First of all, thank you for such an awesome library, made even more awesome by Java8's lambdas. However, in Java8 builds, the use of underscore seems to be marked for deprecation. It gives a warning on compilation. Is there some other name you can give the underscore object?
Regards,
Debdatta Basu
The text was updated successfully, but these errors were encountered: