Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by kps

5 hours ago

> int *w;

But some misguided style guides demand the misleading `int* w;`, and then act surprised by `int* w, x`;

4 comments

kps

Reply

uecker  3 hours ago

Those style guides would also disallow having multiple declarators in a single declaration.

tom_  5 hours ago

I split the difference and write it "int*w".

(Most style guides tell you to declare one name per line anyway...)

  • kps  3 hours ago

    I have seen `int * w` in the real world.

    I'm sad now.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities