2 ms·
I'm building a static analyzer for Solidity in F# and the data shape of Solidity AST nodes overlaps frequently enough that explicitly specifying types is necess
by ryanjshaw 3y ago
I'm building a static analyzer for Solidity in F# and the data shape of Solidity AST nodes overlaps frequently enough that explicitly specifying types is necessary just to get things to compile.
I can't imagine building something like this in a dynamically typed language. The way I see it, static typing is like writing inline unit tests to save yourself many, many headaches later.
- weatherlight 3y agotypes aren't a substitute for tests. let add : int -> int -> int = fun a b -> Random.self_init (); Random.int 100