| James Giles 2006-05-30, 7:07 pm |
| Richard E Maine wrote:
....
> ptr => ptr_func(some_args)
> ptr = an_expression
>
> This new feature just allows you to abbreviate that as
>
> ptr_func(some_args) = an_expression
>
> which I regard as a minor convenience feature rather than something
> radical.
True. Given the first, the second is reasonable. The first
is not particularly reasonable. Having a function return
a pointer is a good way to have memory leaks. And that's
aside from the fact that I don't think the language should
have pointers at all.
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
|