4 ms·
Interesting going from untyped languages to typed languages, as an inference needs to be made. For example, in JavaScript: function add(a, b) { return a +
by awb 4y ago
Interesting going from untyped languages to typed languages, as an inference needs to be made.
For example, in JavaScript:
function add(a, b) {
return a + b;
}
converting to Go, it becomes:
func add(a int, b int) int {
return a + b
}
Where as the original JS version works with integers, floats, strings, arrays, etc.
- john_the_writer 4y agoSame for ruby and elixir. Assumed type..