Better HN
topnewbestaskshowjobs
Log inSign up

cokely

-4 karma · joined Aug 12, 2025 (1y ago) · 4 submissions

Submissions

comment 1y ago · link · parent

Yeah I generally avoid using 'var' to elide method return types for that reason. In my early phase of var enthusiasm I even had it result in a bug that would have been caught if the type had been made explicit.

I do still really like it in the `var list = new ArrayList<String>()` case though.

comment 1y ago · link · parent

Not sure why this was downvoted, I found the terminology confusing and wondered if there was overlap with Chronicle Software myself.