Ask HN: What's a small language feature you've grown to love?

4 points by hawth ↗ HN
For me it's definitely Go's time.Duration type. Having a simple and standard way to handle timespans has been really helpful for my past few projects, and the parsing format has been great for command-line interfaces. No more external libraries or rolling my own, I can just type "1m2s" and Go gets it.

What about you?

1 comment

[ 3.2 ms ] story [ 14.5 ms ] thread
Elm's package management. In elm if you change your API you must change the version of your package following Semantic versioning.

1.1.2 Major.minor.patch.

Or better: Break.feature.fix

And that comes from the language and package manager.