News for hackers. Stuff that matters.
Re:New C features in GCC 13 by shrimp_emoji on Thursday May 04, 2023 @08:01PM (#35823746)
I'm not, although it apparently came off that way.

I meant that, to a person reading the code, `auto` tells you about as much about the type you're looking at as no type at all (like in a dynamically typed language).

This chatter said it better: https://news.ycombinator.com/item?id=35814337

Re:New C features in GCC 13 by grumpyprole on Friday May 05, 2023 @01:45AM (#35825616)
This is where tooling can help. An IDE could display the type next to all auto symbols if you want. Or allow you to query it with a keyboard shortcut. This gives the best of both worlds, rather than forcing everyone to write out the types all the time. Sometimes we simply don't care what the exact type is, e.g. if it's an object created and consumed by an API. We still want it type-checked, but we don't want to be forced to write out the type.