Skip to main content

Timeline for Box data structure in Go

Current License: CC BY-SA 3.0

3 events
when toggle format what by license comment
May 3, 2015 at 17:57 comment added Dave C BTW, both here and in the original, using *Box (other than as a receiver in methods that need to initialize the map itself, i.e. make) is undesirable for a type that only contains a simple map. It just adds an extra level of indirection. E.g. just use func New() Box { return Box{…} }; func (b Box) NumItems(), etc.
Aug 9, 2013 at 14:31 history edited peterSO CC BY-SA 3.0
deleted 18 characters in body
Aug 9, 2013 at 14:24 history answered peterSO CC BY-SA 3.0