Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The ups and downs of porting 50k lines of C++ to Go (2015). Parent comment
I was actually referencing the 0 part and thus saying Go does already have some syntactic sugar when dealing with slices. ie you can do:
slice[5:] // slice[:len(slice)]
slice[5:-1] // slice[:len(slice)-1]
However I'll update my previous comment to make that clearer because I can totally understand how it reads confusingly.
There are no comments on this comment yet.
I was actually referencing the 0 part and thus saying Go does already have some syntactic sugar when dealing with slices. ie you can do:
but not Which is a great pity.However I'll update my previous comment to make that clearer because I can totally understand how it reads confusingly.