Open m-kru opened 3 years ago
@smacker ping
hi @m-kru ! Is there any particular reason you need it to be unit32
?
Int type is at least 32 bytes.
I chose to use int
instead of unit32
here because it is the most common integer type in Go according to my experience and is normally used for indexing. Build-in functions such as len
or copy
also operate with int
type which allows to avoid type conversion.
Well, the only reason is that they are never negative. However, I also understand your point on len
and copy
.
Child()
andNamedChiled()
parameters are currentlyint
. Shouldn't they be of typeuint32
?