/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
“Go’s design is a disservice to intelligent programmers”
(nomad.so)
131 points
apta
| 1 comments |
25 Mar 15 21:48 UTC
|
HN request time: 0.25s
|
source
Show context
barsonme
◴[
25 Mar 15 22:25 UTC
]
No.
9266431
[source]
▶
>>9266184 (OP)
#
His Go is a little disingenuous. This (
https://gist.github.com/EricLagerg/105431503d32f18d239b
) is almost as short as his D code, and functions the same.
replies(3):
>>9266456
#
>>9266519
#
>>9267772
#
NateDad
◴[
25 Mar 15 22:42 UTC
]
No.
9266519
[source]
▶
>>9266431
#
Use io.Copy to copy from the file to os.Stdout. no need to read the whole thing into memory.
replies(1):
>>9266577
#
barsonme
◴[
25 Mar 15 22:50 UTC
]
No.
9266577
[source]
▶
>>9266519
#
Hadn't even thought of that! Nice catch. It's even shorter:
https://gist.github.com/EricLagerg/c3ccf96f6ed90d8b4557
replies(1):
>>9268128
#
1.
EugeneOZ
◴[
26 Mar 15 06:41 UTC
]
No.
9268128
[source]
▶
>>9266577
#
Stop it please, or PHP will win this race easily. With just 1 line of code. And it doesn't mean anything.
ID:
GO
↑