Why Nostr? What is Njump?
2024-10-27 17:47:22 GMT

ChipTuner on Nostr: Minor coding convention #rant. Types should be in the declaration, not the ...

Minor coding convention #rant.

Types should be in the declaration, not the assignment. Inferred types are difficult to read and don't add that much more verbosity imo.

You aren't assigning a type to variable, you are declaring a variable of a type. The compiler MUST know the data type (and it size more specifically) to allocate registers or stack memory. I should be able to look down the left hand side of the file for the variable name and see it's data type.

Personally, I don't even like mixing declarations and assignments, I write in strict C89 standard for my own sanity. Deceleration resides as the first statements and assignment happens later. I wonder if this is leaking from the "immutability movement"