Perl: the Markov chain saw | |
PerlMonks |
Re: Perl 6: Static/Dynamic Strong/Weak Type Systemsby fergal (Chaplain) |
on Apr 15, 2006 at 23:39 UTC ( [id://543600]=note: print w/replies, xml ) | Need Help?? |
I don't find strong typing to be a very useful concept in dynamic lanaguages. I'm not even sure it makes sense to talk about strong typing. Types are determined by the interpreter at run time. The type of a piece of data is carried along with the data so there is only 1 possible way for the interpreter to treat it - it must treat it the way that type should be treated. The only way to break this is to allow programs to pick a pointer into arbirary memory and have the interpreter use it as a value, a feature so dangerous (and almost certainly not what you want to do) that none of the dynamic languages I know allow it (except at the interface to C, e.g. perl's XS system). So perl and other dynamic languages are strongly typed but it's not like someone sat down and said "I'm going to make my language strongly typed", it's because a weakly typed dynamic language doesn't really make much sense.
In Section
Meditations
|
|