5
lorentz
5y

Why do people put the asterisk in pointer types right before the name, thus having it separated from the type? This doesn't really make sense to me, since in this case it isn't a runtime operator but a part of the type definition.

Comments
  • 3
    @24th-Dragon Defining multiple variables of different kinds with a single command is the most confusing thing I've seen in a while. It's allowed in many languages, but I think it would be more readable to just not do it instead of misplacing whitespaces to make it less confusing.
  • 3
    I absolutely agree, I put the asterisk next to the type too. Part of the type, so part of type declaration. Unfortunately this is one of those legacy design things we have to live with (literally cannot see a single reason why being able to declare multiple types of things in a single statement is a good idea).
Add Comment