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

Go is actually a competitor with StandardML and loses badly in every way except having Google's deep pockets to carry it.

StandardML uses a far superior Hindley-Milner type system. It has pattern matching. It has Option types for good error handling. It doesn't have bad features (for GC'd languages) like direct pointers and slices. It has immutability by default. CML even offers a better take on channels too. Modules keep interfaces more standardized (superior for big projects IMO). And to top it all off, SML is easier to learn than Go. It's also as fast as Go (despite the compilers being a side project).

Go's only advantage is more extensive libraries, but that would be fixable in SML with just a fraction of the money Google spent on Go.



This all makes sense to me, but can you explain why it is a bad idea to have slices in a GC'd language?




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

Search: