MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/16hd9mv/godeveloperswillappreciateit/k0e2vxz/
r/ProgrammerHumor • u/sunrise_apps • Sep 13 '23
144 comments sorted by
View all comments
Show parent comment
3
I've seen Go code that implemented Monads by just casting everything to the empty interface (this was before generics). Where there's a will, there's a way.
6 u/HectorJ Sep 13 '23 If you lose static strict typing, you might as well use javascript. 5 u/somebodddy Sep 13 '23 Just use TypeScript and declare everything as Any
6
If you lose static strict typing, you might as well use javascript.
5 u/somebodddy Sep 13 '23 Just use TypeScript and declare everything as Any
5
Just use TypeScript and declare everything as Any
Any
View all comments
Show parent comment
3
u/SOberhoff Sep 13 '23
I've seen Go code that implemented Monads by just casting everything to the empty interface (this was before generics). Where there's a will, there's a way.