[bind10-dev] trivial bug in src/lib/util/io/fd.cc

Dave Hart davehart at gmail.com
Mon Oct 17 16:20:11 UTC 2011


On Mon, Oct 17, 2011 at 14:18, Christos Zoulas <christos at zoulas.com> wrote:
> I personally find the constructor syntax for primitive/integral types
> confusing. Why do:
>
>    ssize_t written(write(fd, buffer, rest));
>
> when it is equivalent and cleaner to do:
>
>    ssize_t written = write(fd, buffer, rest);

I feel the same way.  Perhaps it's just a bias of a programmer who's
used C a lot more than C++, but I can't help reading the first syntax
as "aren't I clever to obfuscate this way!".

Cheers,
Dave Hart



More information about the bind10-dev mailing list