"most languages require explicit variable type declaration."
Well, let's look at the top 12 languages according to:
Most (not all) versions of Basic and Visual Basic allow implicit variable declaration under some conditions.
C# and now C++0x offer a type inference feature (along these lines:http://msdn.microsoft.com/en-us/library/bb384061.aspx ).
While C historically allowed implicit declarations, the language has moved away from this, so I wouldn't claim that implicit declarations have any realistic presence in C or Objective C. Nor, as far as I know, Java or Delphi.
So... some important languages require explicit variable type declarations, and it's an important (but not mandatory) feature of others, but there are several popular languages which don't make a big deal about it.
Return to Index
|Response Title||Author and Date|
|Yes, I know about Option Infer On, but that's relatively recent.||Solitaire on Feb 28|