M
Mr Magpie
From http://weblog.infoworld.com/udell/2006/09/06.html:
"We saw a hint of this in episode 2 of The Screening Room, on Adobe
Flex, when Christophe Coenraets talked about the value of ActionScript
3's optional static typing. "When you already know what your types
should be, declare them," he said. "When you don't, don't." One
language, two styles, complementary benefits."
This makes a lot of sense to me. eg a function that processes strings
need not accept anything else, would trap certain errors by declaring
acceptable type(s) and would be easier for code completion in an IDE.
"We saw a hint of this in episode 2 of The Screening Room, on Adobe
Flex, when Christophe Coenraets talked about the value of ActionScript
3's optional static typing. "When you already know what your types
should be, declare them," he said. "When you don't, don't." One
language, two styles, complementary benefits."
This makes a lot of sense to me. eg a function that processes strings
need not accept anything else, would trap certain errors by declaring
acceptable type(s) and would be easier for code completion in an IDE.