in reply to Re^2: Static typing is mostly a waste of time
in thread Static typing is mostly a waste of time

I said: + is defined differently for @foo than it is for $bar. It's not conversion - it's polymorphism.

How that polymorphism is achieved is irrelevant. '+' will do the right thing when handed varying types. The fact that '+' imposes scalar context upon its operands and @foo in scalar context is "$#foo + 1" doesn't change the fact that it's '+' which is the agent of the context conversion.

  • Comment on Re^3: Static typing is mostly a waste of time

Replies are listed 'Best First'.
Re^4: Static typing is mostly a waste of time
by Anonymous Monk on Apr 12, 2005 at 15:16 UTC
    You're absolutely right. If you define polymorphism to be that, then indeed, it's polymorphism.