I'm for the functional names as it is how all the programming languages that
I know of implement dot products and cross products. It is clear what they
mean and the symbols we use in math for the dot product and cross product (a
dot and a cross) do not exist explicitly on the key board. Secondly, t
FYI: there is a lot of stuff on the subject we've already typed here:
https://github.com/sympy/sympy/pull/450#issuecomment-1782199
For the sake of retyping.
On Thu, Aug 11, 2011 at 1:15 PM, Jason Moore wrote:
> I'm for the functional names as it is how all the programming languages
> that I kno
One comment below.
On Thu, Aug 11, 2011 at 1:15 PM, Jason Moore wrote:
> I'm for the functional names as it is how all the programming languages that
> I know of implement dot products and cross products. It is clear what they
> mean and the symbols we use in math for the dot product and cross pr
Thanks for the link Jason, there is some good discussion there which it
would be optimal to not have to repeat.
My opinion after reading through that is as follows.
I like operators. If the language supports it and you can find a good set
they really do make writing code feel more like writing ma
Couple more thoughts on operator overloading.
Let's assume the '+' symbol means 'to add' in the language of choice. It is
very clear that what adding two numbers should do, but what about other
objects:
object = matrix
'+' should add the matrix. we could write a function called 'add_matrix',
b
On Thu, Aug 11, 2011 at 5:22 PM, Jason Moore wrote:
> Couple more thoughts on operator overloading.
>... The outer product
> doesn't really have a symbol on the keyboard. It often uses an x with a
> circle around it. Same with cross...the 'x' would be the best choice, but
> our language choice pro
I agree with Jason that coercing operators to perform unfamiliar tasks is
probably a poor choice. I disagree however that operators have only a single
meaning or that they should be avoided when their meaning might be
ambiguous.
Example of the first (operators have only a single meaning)
& also me
On Thu, Aug 11, 2011 at 3:31 PM, Jim Jewett wrote:
> On Thu, Aug 11, 2011 at 5:22 PM, Jason Moore wrote:
>> Couple more thoughts on operator overloading.
>>... The outer product
>> doesn't really have a symbol on the keyboard. It often uses an x with a
>> circle around it. Same with cross...the '
Thanks for bringing up my argument. I would recommend against using
&, ^, and | because they have operator precedence much different than
what you would expect. Luke, did you tell your girlfriend that you
have to type x + (y & z) or else it will be interpreted as (x + y) &
z? I think she may cha