| ▲ | nightpool 3 hours ago | ||||||||||||||||
Okay, but this contradicts your original statement that "Java doesn't steer anyone to use these [footguns]". Every language has a way to parse integers, and most developers do not need a custom parser. Only in Java does that suddenly become a performance footgun. | |||||||||||||||||
| ▲ | ivan_gammel 2 hours ago | parent [-] | ||||||||||||||||
It does not. If you need to parse a number, you use standard library and you will be fine. The described case with huge impact on hot path is the demonstration why using brains is important. The developer that will get into this mess is the one who will find the way to suffocate his code with performance bottlenecks in thousand other ways. It’s not a language or library problem. | |||||||||||||||||
| |||||||||||||||||