Comment

Comment by isaiahg

I really like go. Its simple in that you can learn the language pretty quick. I might get burned in another comment below but it's the language that feels the closest to C to me. Both are really simple languages that can get relatively complicated pretty fast. Inheritance through embedding for one feels a lot like using -fms-extensions in C.

However I think the coolest part of the language is the part no one talks about. The inclusion of comments as a major part of a program.

// +linux

for managing files for specific platforms is just wonderful.

//go:embed

for embedding files and directories into your program

// #include <stdlib.h> import "C"

is probably the coolest and easiest ways to use C libraries I've seen. You can write C code directly into your go files and even set complier and linker flags.

//go:generate

can allow you to automate your build process from within your codebase.

parent isaiahg 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton