Re: Type declarations problematic?



Maciej Sobczak <no.spam@xxxxxxxxxxx> writes:

Hi,

http://www.joelonsoftware.com/items/2006/10/12.html

"[it] seems to be that itʼs explicit typing, where the programmer is
asked to declare the type of things, that leads to most of the problems.

[...] itʼs starting to look like type declarations are one of those
accidental difficulties that good programming languages can eliminate."


It is obvious that there is a place for dynamically typed languages, but
the above statements seem to be a bit too far-fetched. Do they mean that
"typeless" languages will just suck some of the Java audience (fine for
me), or is it maybe a more general problem that will drive the evolution
of programming languages further away from strongly typed systems?
Do you plan a switch to Ruby? ;-)

I don't know. But note that the opposite of "programmer is asked to
declare the type of things" is not necessarily dynamic typing. There's
also type inference, as in SML, OCaml, Haskell, all of which are strong
statically-typed languages where you don't have to declare the types of
all the variables.

- Bob
.



Relevant Pages

  • Re: How much would variable declarations in Ruby make you wince?
    ... languages that require variables to be declared or typed. ... How on God's green Earth are you going to accidentally prepend an ... only happen if you accidentally want to declare a new variable. ... until "var" is the norm; ...
    (comp.lang.ruby)
  • Re: variable declaration, was RE: moving to the next line
    ... Declare them as you go. ... > the Perl I've written. ... In some other languages, like C, C++ and Java you must specify ...
    (perl.beginners)
  • Re: Static vs. Dynamic typing
    ... > object1, has methodin it ... Not that the static typing of languages such as Java was really staying ... Niklaus Wirth not only forces you to declare types, ... I'll let you find the explanation for empirical data and draw the ...
    (comp.object)
  • Re: Perl and Python, a practical side-by-side example.
    ... what Perl-specific and Python-specific improvements to the code would ... languages. ... You didn't provide any samples of your actual input data (and expected ... However, in general, note that it's poor practice to declare all your ...
    (perl.beginners)
  • Type declarations problematic?
    ... "seems to be that it’s explicit typing, where the programmer is asked to declare the type of things, that leads to most of the problems. ... It is obvious that there is a place for dynamically typed languages, but the above statements seem to be a bit too far-fetched. ... Do they mean that "typeless" languages will just suck some of the Java audience, or is it maybe a more general problem that will drive the evolution of programming languages further away from strongly typed systems? ...
    (comp.lang.ada)