Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
elvlysh
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
elvlysh
1y ago
> You may as well use exception handlers if you're going to go there. I didn't know about this trick, thanks for sharing.
2.
▲
by
elvlysh
1y ago
Yes, and all are equally offensive to the average Go hater, all of them have NULL, and all of them have terrible error handling. It's not "argument from popularity", it's "argument from success". Some things su
3.
▲
by
elvlysh
1y ago
>Abstractions make large systems easier to understand, not harder. I raise you AbstractSingletonFactoryProxyBean.
4.
▲
by
elvlysh
1y ago
You can do something like this: type errHandler struct { err error } func (eh *errHandler) getFirst() string { // stuff if err { eh.err = err } return result } func (eh *errHandler) doWit
5.
▲
by
elvlysh
1y ago
How come a reinvention of a 30 year old wheel is more successful and popular than pretty much every language that attempted to evolve the wheel during that time? "It's because people who like Go are stupid and companies need stupi
6.
▲
by
elvlysh
1y ago
Pretty much every reputable computer scientist has been saying for the last 70 years that the most important thing in the entire world is simplicity and ease of understanding.
7.
▲
by
elvlysh
1y ago
Compactness is in the eye of your beholder. You might have the eyes of a spider, but I have the eyes of a large orc.
8.
▲
by
elvlysh
1y ago
"bad" ideas? Really? Are you so sure? Are your ideas really any better? What language have you made that has seen more success than Go? Clearly if they did such a bad job it would be easy for you to fix it all up and tell everyone
9.
▲
by
elvlysh
1y ago
> Do this call value, err := function() > if there is an error return it if err != nil { return err } > otherwise give me the value // rest of the code goes here
10.
▲
by
elvlysh
1y ago
So you would prefer to write match result => error instead of if err != nil? Excuse me for not being convinced that this isn't just fussing over syntax.
11.
▲
by
elvlysh
1y ago
More like you ignore the existing work that Go itself is built on.
12.
▲
by
elvlysh
1y ago
More than one person designed the language than Pike, you know. He's retired. Maybe you can find another member of the devteam to pick on?
13.
▲
by
elvlysh
1y ago
I don't really agree. I find Iota perfectly serviceable.