Bayan Bennett

"You can catch yourself doing something strange" ~‪@ThePrimeagen‬

This is a great point in favour of typing returns of functions.

There's sometimes a disconnect between what a developer intends a function to do and what it actually does. Having a return typed can help catch these oversights sooner rather than having to decipher a long type error somewhere else in the code.

2 years ago | [YT] | 0