News for hackers. Stuff that matters.
Re:Things Go needs more than generics by pornel on Monday October 04, 2021 @05:59PM (#28752603)
It has both optional and panicking ways to index, but it steers users away from using indexing in the first place.

The `for` loop is based on the Iterator trait. Iterators typically optimize better than indexing, and can't panic.

There are no comments on this comment yet.