Comment

Comment by dev_dull

For CLI it’s true to the Go mantra. If the flags library is “good enough” why not just use it and avoid being fancy?

Besides, isn’t it feasible someone might confuse long and short options? “Is -d and —delete the same, or is -d —debug??” KISS even if it’s annoying.

As for loops, I know that they’re generally more common in Go. Another example is finding if an element exists in a slice. Most of the implementations is this stuff is just a loop under the hood in the end.

From a Java background it was strange to me because I’m used to dealing with classes and there’s always a method for this or that...

parent dev_dull 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton