Code review PR

Yup, it's a global. No passing. Also it's size is fixed and insignificant.

On Thursday, September 25, 2014, Ashish Gandhi <notifications@github.com>
wrote:

> In geostore.go:
>
> > +	"fmt"
> > +	"log"
> > +	"math"
> > +	"strconv"
> > +)
> > +
> > +const (
> > +	MAXLAT   float64 = 90.0
> > +	MINLAT   float64 = -90.0
> > +	MAXLNG   float64 = 180.0
> > +	MINLNG   float64 = -180.0
> > +	MAXDEPTH int     = 10
> > +)
> > +
> > +// An array of hash codes corresponding to the symbols for each sub-cell in a geobox.
> > +var CODES [4][4]string = [4][4]string{
>
> Yep. Constants can only be number and string *kinds*.
>
> You can use arrays. Just keep in mind that if you pass it around you are
> making a copy every time. Unless you take the care to pass a pointer and
> then deference it to use it. You'd not have that problem with a slice.
> Slice is essentially a pointer to an array (with conveniences).
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/HershReddy/geostore/pull/1/files#r18067574>.
>