Hacker News new | past | comments | ask | show | jobs | submit login

This is just another example of Go's fundamental attitude. Stuff is available for the language designers, but not for you :

* generic functions (e.g. append)

* generic data types (e.g. slices)

* exceptions (like illustrated above)

* special case syntax

* Custom event loops

* precompiler macros (very bad to use, horrible, blah blah ... except of course for the people imposing this restriction, and YES they're using it amongst other things to workaround the lack of generics in C)

...

This attitude was common in middle-90s "generic" programming languages like Ocaml, Modula-2 and others. You should simply look at Go as one of those languages and treat it as such.

If this attitude bothers you, you should look at C++0x and D.




I've read your comment twice and I cannot see any pertinent connection between it and what I said.




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

Search: