Перейти к содержимому

How far can type inference go?

rats159

0:00 / 0:00

How far can type inference go?

21 307 просмотров · 6 часов назад
rats159
8,12 тыс. подписчиков
21 307 просмотров · 6 часов назад
Most languages these days have type inference, but some take it further than others. Languages like Odin get it almost perfect, while languages like Typescript and OCaml take it way too far. Overly powerful, omniscient type inference systems only serve to slow down compilation and cause confusing bugs, forcing users to rely on fallible documentation and best guesses, under the guise of saving time and being convenient.