in reply to Re: Re: Re: There's Only One Way To Do It
in thread There's Only One Way To Do It
Perl is dynamically typed, but also very strong.
Can you explain this a bit more? First, are these definitions correct? Static typing means the type of the variable is known at compile time. Dynamic typing means the type of the variable is not known at compile time.
If those definitions are correct then I assume that the aspect of Perl that makes it dynamic is that the value in a variable can be a number or string of any length (limited by memory) and therefore makes the language dynamically typed. And the aspect that makes it static is that the structure of the variable is known at compile time (scalar, array, hash) and therefore makes the language statically typed as well. However just as in C and C++ references can be used to avert this static typing.
Is that right?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: There's Only One Way To Do It
by hardburn (Abbot) on Apr 07, 2004 at 03:18 UTC | |
by disciple (Pilgrim) on Apr 07, 2004 at 03:45 UTC | |
by herveus (Prior) on Apr 07, 2004 at 10:59 UTC |