News for hackers. Stuff that matters.
Re:FastDoubleParser: Java port of Daniel Lemires fast_double... by RedShift1 on Monday March 22, 2021 @01:36PM (#26543923)
I disagree, why exactly would it need to be re-written because it's in Java? Does the language matter at all? To me this piece of code is concise, I immediately recognized it as a bounds check. If you re-write this to add braces, newlines, the if statement... just creates more cognitive load in favor of? To me this little line is perfect, it does exactly what it is supposed to do and it doesn't hide its intent.
Re:FastDoubleParser: Java port of Daniel Lemires fast_double... by Bjartr on Monday March 22, 2021 @03:20PM (#26545447)
If being more concise was always better for cognitive load, we'd all be writing APL.