zlacker
[return to "“Go’s design is a disservice to intelligent programmers”"]
◧
1. barson+Z3
[view]
[source]
2015-03-25 22:25:44
>>apta+(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.
◧◩
2. NateDa+p5
[view]
[source]
2015-03-25 22:42:27
>>barson+Z3
Use io.Copy to copy from the file to os.Stdout. no need to read the whole thing into memory.
◧◩◪
3. barson+l6
[view]
[source]
2015-03-25 22:50:53
>>NateDa+p5
Hadn't even thought of that! Nice catch. It's even shorter:
https://gist.github.com/EricLagerg/c3ccf96f6ed90d8b4557
◧◩◪◨
4. Eugene+mv
[view]
[source]
2015-03-26 06:41:15
>>barson+l6
Stop it please, or PHP will win this race easily. With just 1 line of code. And it doesn't mean anything.
[go to top]