4 ms·
Go is a bit like C but it has GC so it depends on how much you value the fine degree of control of memory allocation that you get with C. Personally I think Go
by djhworld 14y ago
Go is a bit like C but it has GC so it depends on how much you value the fine degree of control of memory allocation that you get with C.
Personally I think Go has a lot cleaner syntax than C and the tools give a lot more "friendly" error messages when compiling your applications.
You do still get nullpointerexception runtime errors though but that's an inherent problem with the nil/null type.
- guilloche 14y agoThanks for replying. It seems GO is not for me at least now. What I want is an optional strong typed script language with highest performance. Lisp serves me well here. I have only three real things to care about a language: 1. Performance and thus optional strong typed is required. Go can have optional strong typed system, so performance may be improved in future, but its GC seems a big warning for me. I want to have option to allocate/free memory myself. the GC is also an enforcement of some design principle, which is also a big minus regarding the next point. 2. Great flexibility, basically the language should not make any decisions for developers. I dislike C++ for its OOP approach to make way too many decisions for developer. I want no limitation from a language. I can self restrain to avoid all troubles from freedom, I can design OOP/GC myself if it is neccessary, but please not make decision for me. (C++ did not enforce OOP, but most of the extra part beyond C usually distorts a good design otherwise) Lisp and C are almost perfect here. Does GO allow any weird design people may think of? any enforcement of some supposed-to-be good principle? 3. A script, which can relieve me on all details. Occasionally, I may not care performance, and I want life easy. Python is prety good here. Lisp is good but lack of compiling on ARM machines is a big disadvantage.
- djhworld 14y agoYou might get a bit of mileage out of 3., you can write go applications quite quickly and the optional typing makes it feel script-ish. Also Go does compile on ARM.