News for hackers. Stuff that matters.
Re:C++26: A Placeholder with No Name by ok123456 on Saturday January 11, 2025 @01:40PM (#42667986)
Auto is preferred for assignment because it eliminates a whole class of errors involving unintentional construction. Dropping a const is the conanical example.

Auto in a function signature is syntactic sugar for introducing a template parameter. It needs to be monomorphized at some point to generate code.

There are no comments on this comment yet.