Better HN
topnewbestaskshowjobs
Log inSign up

ncurses1010

1 karma · joined Dec 15, 2025 (11mo ago) · 2 submissions

Submissions

comment 7mo ago · link · parent

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

comment 7mo ago · link · parent

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?