Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
avgcorrection
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
208 ms
·
2821.
▲
by
avgcorrection
5y ago
> I don’t understand what the article is trying to convey. Lispers are from Mars and Haskellers are from Venus. That’s it.
2822.
▲
by
avgcorrection
5y ago
> and everyone else in the room had an "oh shit" moment because their amateur language design didn't address that corner case. I doubt that’s how it went down. They tend to be very confident in their design decisions. Wh
2823.
▲
by
avgcorrection
5y ago
Pure+imperative sounds useless. The imperative steps wouldn’t buy you anything. If you already can do let-bindings then you get nothing extra from imperative statements. Something more useful is an imperative language which only uses immuta
2824.
▲
by
avgcorrection
5y ago
A collection is a red herring. A collection uses a “getter” for the size since the size is not something you get/set like in a value object. But then again no one calls it a “getter” (not even Java calls it `getSize()`) since the get&
2825.
▲
by
avgcorrection
5y ago
Apparently your field was used both for some internal shenanigans as well as a public field through the get/set indirection. Then you changed the field but kept the old public behavior. I wonder whether (1) that dual purpose internal
2826.
▲
by
avgcorrection
5y ago
> Getters and Setters also permit you to specify that something can only be retrieved or assigned, but not the other. Only retrieved? `final` and set the fields through the constructor. Sure someone could implement setters-only if they
2827.
▲
by
avgcorrection
5y ago
> Getters and Setters? You probably don't need them. Classes can have public member variables. We do need them if the objects interact with a lot the libraries that we use. Libraries that we didn’t make. They expect get/set.
2828.
▲
by
avgcorrection
5y ago
> I'm not sure how you know it was "obviously pasted and not transcribed". In hindsight it wasn’t completely obvious. I ended up googling the phrase to confirm. Just seemed very likely that the quote was taken from an emai
2829.
▲
by
avgcorrection
5y ago
It’s a poor practice in a digital context. The very act of adding such annotations just increases the likelihood of botching a quote compared to just copying it over... It might be understandable for a digital medium which can be hard to p
2830.
▲
by
avgcorrection
5y ago
What’s the point of using sic in a quotation that was obviously pasted and not transcribed?
2831.
▲
by
avgcorrection
5y ago
> Strings may span multiple lines by escaping new line characters. What if the escape character comes before a trailing whitespace? Like this (`_` is whitespace): "hello,\_\n Will that still escape the newline?