Skip to content

Comment on How to Think About Variables in Cparent

Comments

Go: Basically the same as C, but with better specification for type sizes, more rigid rules about automatic type conversion, no pointer arithmetic (you can do it using the unsafe package but it is highly discouraged by both the language design and idiomatic usage) and a compiler which can do type inference.

Also, when you get to manually allocated heap data (which this article doesn't cover) you don't have to worry about deallocations... usually.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.