Re:Golang landmines
by sigill on Sunday September 18, 2016 @06:49AM
(#12524787)
Do you propose having another syntax for getting the zero-length slice just past the last element? The [2:] syntax giving you {} is a pretty natural progression from [0:] giving you {0, 1} and [1:] giving you {1} in your example.
[ Parent
| on HN ]
There are no comments on this comment yet.