On Aug 22, 3:32 am, Simon King <[email protected]> wrote:
> On 22 Aug., 04:37, Chris Seberino <[email protected]> wrote:
>
> > ...
> > sin (pi)    # rare,  sin(pi) more likely
> > f (3, 4)    # rare,   f(3, 4) more likely
>
> Likelihood is a not a good guideline, IMHO. I prefer rigour.

Implicit multiplication is rigorous (or any remaining corner cases can
be made so).  Syntax is just interpreted differently.

> Hence, when you write "f (3, 4)", do you really mean that *both* blank
> spaces should trigger a multiplication? Do you really mean f
> multiplied with the tuple (3,) multiplied with 4?

I proposed this on dev and it didn't immediately get shot down as
crazy.  I am only proposing parsing
LETTER-WHITESPACE-LEFTPARENS" differently.  Hence "3, 4" would not be
affected.

 > And even when you write "f (3,4)" (with only one blank space): Do
you
> really mean "expression f multiplied with tuple (3,4)"? What is the
> product of an expression with a tuple?

In my proposal a function call with a space between the f and the
tuple would not be allowed.  Hence, your example would either give a
result if the product of f and (3, 4) made sense, or, an error.   That
would be rigorous and preferred IMHO.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to