News for hackers. Stuff that matters.

ncurses1010

Re:The Secret Life of NaN on Tuesday April 28, 2026 @02:31AM (#47931061)
What do you think of kotlins approach where it has a 'todo' function that can always coerce to a type, but instead of populating the variable with a default value that's valid, it just throws
Re:The Secret Life of NaN on Monday April 27, 2026 @09:30PM (#47929488)
With the default initialization to nan, do you ever run into situations where people are searching for common sources for nan (nan literals, div by zero) and they can't find it? Or cases where only some branches but not others initialize the float?