in reply to Re^2: compiling perl scripts aka why is perl not as fast as C
in thread compiling perl scripts aka why is perl not as fast as C
So you define Perl5's types as being scalar, array, hash and few others
Right, these are the user exposed types; strings and integers (PV/IV) are hidden from the user as much as possible, so I don't see them as types in Perl 5. (This attitude is influenced by me not writing any XS code, I think).
No, no coercions occur between any of of those types.
my $scalar = @array; # or my @array = $scalar;
Is that no coercion?
Talking of static vs dynamic typing sounds a lot like talking about strong vs weak typing.
In my book there's a difference: For example the C programming language has static typing (determined at compile time), but weak (you can cast anything to anything else even if it doesn't really makes sense).
But I'm guess I use these words not in the same sense as everybody else does, nor is there any shared consensus on what these things actually mean.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: compiling perl scripts aka why is perl not as fast as C
by ikegami (Patriarch) on Mar 22, 2010 at 17:10 UTC | |
by moritz (Cardinal) on Mar 22, 2010 at 17:26 UTC | |
by ikegami (Patriarch) on Mar 22, 2010 at 17:39 UTC | |
by moritz (Cardinal) on Mar 22, 2010 at 17:57 UTC | |
by ikegami (Patriarch) on Mar 22, 2010 at 18:19 UTC | |
by Hue-Bond (Priest) on Mar 22, 2010 at 17:50 UTC | |
by ikegami (Patriarch) on Mar 22, 2010 at 17:56 UTC | |
Re^4: compiling perl scripts aka why is perl not as fast as C
by ikegami (Patriarch) on Mar 22, 2010 at 18:38 UTC |