logoalt Hacker News

materielle11/08/20241 replyview on HN

Go is definitely of the “worse is better” philosophy. You can basically predict what someone will think of Go if you know how they feel about that design philosophy.

I remember that famous rant about how Go’s stdlib file api assumes Unix, and doesn’t handle Windows very well.

If you are against “worse is better” like the author, that’s a show stopping design flaw.

If you are for it, you would slap a windows if statement and add a unit test when your product crosses that bridge.


Replies

guappa11/11/2024

> Go’s stdlib file api assumes Unix

Until you want to do unix things like mmap() and madvise() of course. In which case it assumes an OS without those really basic features.