D vs Go in real life
John Colvin
john.loughran.colvin at gmail.com
Fri Nov 29 06:59:13 PST 2013
On Friday, 29 November 2013 at 12:11:26 UTC, bearophile wrote:
> Chris:
>
>> But why on earth (a []byte)? The type is important, not the
>> name. I can give it any name. a, inComing, inBytes, response,
>> draculaBytes ...
>
> I read that type "array of byte(s)", I find it a bit better
> than D syntax, especially when types become a little more
> complex.
>
> Bye,
> bearophile
"byte array named a" vs "a is an array of bytes". Either is fine.
I agree that sometimes the latter is better for complex types.
More information about the Digitalmars-d
mailing list