eddie said:
strongly-typed is really under-rated in a scripting language, IMHO.
Besides being less error-prone it makes clearer and potentially faster code, all of which could be nice.
Posted 01 February 2007 - 02:08 AM
eddie said:
Posted 01 February 2007 - 04:10 AM
function foo (bar, baz)I have no idea what type bar and baz are supposed to be. Numbers, strings, some ADT or object? Of course, one can document this in comments, but as we all know comments can get out of date or incorrect. Static typing (I'll use this term since 'strong typing' is sort of vague) isn't just a compile-time check on (a limited aspect of) program correctness, it's also means of documenting code, where the compiler can automatically verify that the documentation is correct.
Posted 01 February 2007 - 04:32 AM
char *foo (int bar, double baz)How is this much better? I still don't have a clue what the function does, much less any idea if it is working correctly without a unit test. ;)
Posted 01 February 2007 - 05:12 AM
monjardin said:
char *foo (int bar, double baz)How is this much better? I still don't have a clue what the function does, much less any idea if it is working correctly without a unit test. ;)
function CalculateValue(scaleValue, index);
Posted 01 February 2007 - 06:19 AM
monjardin said:
char *foo (int bar, double baz)How is this much better? I still don't have a clue what the function does, much less any idea if it is working correctly without a unit test. ;)
eddie said:
Posted 01 February 2007 - 06:34 AM
nopcoder said:
Posted 01 February 2007 - 07:23 AM
monjardin said:
char *foo (int bar, double baz)How is this much better? I still don't have a clue what the function does, much less any idea if it is working correctly without a unit test.
Posted 01 February 2007 - 12:35 PM
Posted 05 February 2007 - 11:55 PM
Posted 15 February 2007 - 08:57 AM
Posted 15 February 2007 - 10:43 AM
Bad Sector said:
Posted 15 February 2007 - 11:32 AM
Posted 15 February 2007 - 11:36 AM
Posted 15 February 2007 - 11:45 AM
0 members, 1 guests, 0 anonymous users