Re: what is this syntax about?
On Jun 30, 11:56am, Jerry Coffin <jcof...@taeus.com> wrote:
> The difference is that in this case, we're assigning to a_ and b_
> instead of initializing them. In some cases (e.g. references) you can
> only initialize, NOT assign, so you _must_ use an initializer list
> instead of an assignment.
Now I see why Java only has objects, no references. The designers of C+
+ sacrificed readability for this albeit clever feature of references.
Not that I'm trolling mind you, the two approaches aren't better or
worse per se, just different.
|