Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can't really argue with that. It's a way to get nominal types in a language that has structural typing. Even though the usage is simple, the implementation is more complicated than it should be.

If for example the language was missing builtin hashmap type, its implementation would be nasty as well.

I'm not a huge fan of typing systems, the thing I like the most in TypeScript is that you can use types as little as you want and add more only when you want it. But I don't like languages like go that intentionally lack features.



> languages like go that intentionally lack features

people will go as far down the rabbit hole as you let them, which is what the Go developers understand and are trying to account for:

https://www.hyrumslaw.com


I understand it's merit. I just don' like it. I think it's at least 100 years too soon for that. Exploration is important.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: