News for hackers. Stuff that matters.
Re:The Ergonomics of Type Checking (2016) by quickben on Saturday October 28, 2017 @03:47PM (#15576489)
"I often wish I worked in a language where I could start dynamic and end statically."

C++ 'auto' type. Workflow:

1. Write 'auto =', see what the compiler picks up (iterator of a vector of a set of classes that points to a list of structs, etc).

2. Potentially copy/paste that (unless the line is bigger than 350 characters :) )

Re:The Ergonomics of Type Checking (2016) by jeremyjh on Saturday October 28, 2017 @06:39PM (#15577043)
Type inference or deduction is not the same as dynamic typing. An auto variable resolves to exactly one type, which is determined by the expression it is bound to. If you pass that variable to a method expecting a different type, the compiler will stop you. If it were dynamically typed, it would let you proceed and fail at runtime.