Re: Thinking about scalars

2001-04-24 Thread Michael G Schwern
This may or may not be related to Dave's post, but I just remembered why I don't like a dual-natured +. I'm sorry if this was gone through before. Consider the following... sub foo { $_[0] + $_[1] } What do the following return? foo(1,1); obviously 2 foo(

Thinking about scalars

2001-04-23 Thread Dave
I have lurked for several months now, and find that I can hold my tongue no longer. The 'discussion' of overloading '+', to include concatenation, suffers from a general degeneration into implementation details, where linguistic sentiment should reign. The contention that '+' should be overload