Hacker News new | ask | show | jobs
by lelanthran 1023 days ago
> In the absence of IDE features, you also can't differentiate between a function taking a pointer and a const pointer.

So? It still helps me with decoding `foo(bar, baz)`, as without the `&` I KNOW that bar and baz would not change after the call. And since both bar and baz are in the local scope, I already know whether they are pointers or not.

With pointers, all the information necessary to determine if bar and baz would change after a call to foo is in the local scope. With references that information is elsewhere.