On 10/23/2013 04:03 PM, DavidVorick wrote:
>
> In src/libytcd/blockchain.go:
>
> > @@ -1,8 +1,8 @@
> >  package libytcd
> >
> > -type Account string
> > +type Account [64]byte // 512 bits
>
> What are the advantages to using a slice in this situation? the whole 
> point of a slice is that you can move data in and out without 
> reallocating stuff. But in this case it's always going to be a 64 
> element slice. You lose the advantages because you don't make use of them.
>
> Plus in this way you know exactly how many bits the struct is.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/DavidVorick/bytecoin/pull/7/files#r7169692>.
>
Memory access is checked so you don't have buffer overflow problems.