3 ms·
int[] UserIDs; If you had a choice of knowing the variable was an int[] or knowing it’s name was UserIDs the latter would be much more useful. This is why new
by trixie_ 8y ago
int[] UserIDs; If you had a choice of knowing the variable was an int[] or knowing it’s name was UserIDs the latter would be much more useful.
This is why new languages are trending towards inferred types. Much easier to write and read (you get your padding taken care of for free as well when you use var)
Also ‘what’ is happening is the actual flow and logic of the code. ‘Why’ it is happening is in your comments.
- jstimpfle 8y ago> (you get your padding taken care of for free as well when you use var) How so? Padding is inserted when the layout (order of fields) is bad. There are no language that reorder structures, are there? > Also ‘what’ is happening is the actual flow and logic of the code. ‘Why’ it is happening is in your comments. That's certainly one way to put it. But I was relating to the "show me your tables..." quote's kind of feeling. So, to be more clear, maybe more to the "what is possible" vs "what have the authors currently thought of / implemented".