Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vlads_
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
vlads_
6y ago
> Sure, the former are language features while the latter are library features but that doesn't seem to be a meaningful difference when it comes to comprehension. Absolutely. The difference is that Go has a limited number of such fe
2.
▲
by
vlads_
6y ago
> So while Go may be quick to write. I think the understandably is deceiving. Yes, I can understand every line, but understanding the program/patch as a whole becomes much more difficult because of the lack of abstraction. Humans ca
3.
▲
by
vlads_
6y ago
This is pretty much correct, except for 2 minor gripes: Firstly, Go was meant to replace C++ in server-land. The fact that it ended up being a suitable alternative for Java/Python in many cases was a happy accident. Secondly, I don
4.
▲
by
vlads_
6y ago
I'm going to be a smartass about this and say I think neither of you are wrong. The "extra typing" gives you a large boost in your confidence that you've written something correct, without necessarily boosting the correc
5.
▲
by
vlads_
6y ago
First of all, interfaces are not nil if they point to a nil value for the same reason a * * T is not nil if the * T is nil. That is the correct decision. You can not call a function on a nil interface, but you can call a function on a
6.
▲
by
vlads_
6y ago
Never said it was a good idea. It's inefficient, unsafe and hard to read but, as far as I can tell any generic function with concrete return types can be written using reflect (and any generic function with generic return types can be
7.
▲
by
vlads_
6y ago
Fun fact: because json is a reflective package in Go, solving your problem is quite trivial: https://play.golang.org/p/-TZ5b9Su1or . As for programming with types, that's partly what Go was trying to avoid: https
8.
▲
by
vlads_
6y ago
Well, you can :) https://play.golang.org/p/sum21uSy1Ae
9.
▲
by
vlads_
6y ago
I can't access the link because it's paywalled, but I assume you're talking about this clip: https://youtu.be/kGsqg5vtahA . EDIT: Found the free button :). Yeah, I guessed right. I can't see how you can
10.
▲
by
vlads_
6y ago
And the vast majority of policemen are not beating people up.
11.
▲
by
vlads_
6y ago
> If, for example, the punishment for certain crimes is so high by default that the criminal would rather die than get a sentence that would equal death, then you have taken any and all motivation from that criminal to look for a more re
12.
▲
by
vlads_
6y ago
> The crowd has been otherwise quite peaceful exercising their first amendment right. Not going to lie, this actually made me laugh[1]. Other than that, you missed my point entirely. When a policeman calmly explains to you that you are n
13.
▲
by
vlads_
6y ago
You claim that law enforcement culture differs in the countries which you are comparing and that is indeed true. But is the crime culture the same? Or is that not a factor worth considering?
14.
▲
by
vlads_
6y ago
I've watched 30 clips. ALL of them were 30 second clips with no context. All of them from one Twitter thread as well, so not sure why that was not linked instead. On the other hand, all of the instances of so-called police brutality wi