1,447 karma · joined Oct 21, 2011 (15y ago) · 383 submissions
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
Contrast this to refactoring huge javascript or python programs because the compiler isn't going to check if what you refactored 'fits' into the place you put it. It's always very nerve racking for me when refactoring large pieces of javascript or python because even if it runs, often many bugs remain lurking that won't be found out until the unit tests are re-written.
comment 14y ago · link · parent
comment 14y ago · link · parent
Also for arrays it's unfortunate the syntax is like it is, because int a[10];, is of course a pointer and would be a bit more intuitive in the form of int[] a = new int[10];
Also you say * before the variable 'looks like dereferencing is intentional.' but is it really? what's your source?
comment 14y ago · link · parent
edit: another point - putting * before the variable makes me think of a dereferencing operation, and that's part of why putting it before the variable name in declaration is unintuitive, and very confusing to people learning C.
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent