Comment 3 for bug 16505

Revision history for this message
Jeff Hodges (jmhodges) wrote :

Created an attachment (id=2205)
'^' -> calc_xpowy() and 'x' -> calc_xor()

(In reply to comment #2)
> The default shortcut for exponentiation is 'y' (as in 'x^y')

Ah, there we go. It seems that this is a simple three line patch to
lr_parser.y. I ran the old "ask 10 people" usability test on what button
people use when they plug expressions into their software calculators and it's
either "I use a mouse" or "I hit that carrot/hat/up arrow button". Maybe it's
a cultural thing but so far, no one has thought that "y" would be something
they would try. I'm including a patch to switch '^' to calc_xpowy() and 'x' to
calc_xor(). I've triple checked to make sure this doesn't break anything in
the parser. Feeling silly for making a new patch (and a new comment) for three
lines of work on such a trivial change. The patch is against the latest CVS
but I doubt the parser has changed much.