Hacker News new | ask | show | jobs
by CyberDildonics 1244 days ago
It's not 'quite hard' you just need to put types on your variable and function declarations.

If you leave them off you can make a function generic but you need to make sure you don't have multiple returns that could each return different types.