I do variations of this in C++ all the time too. Maybe languages with complex enough type systems should have a "raise a diagnostic with the type of this expression" operator
and a REPL for the type system
Quote Tweet
let x: String = definitely_not_a_string; is my favorite way to figure out actual types for things.
6
4
43



