From: "marcandre (Marc-Andre Lafortune)" Date: 2012-11-12T05:37:30+09:00 Subject: [ruby-core:49234] [ruby-trunk - Feature #7328] Move ** operator precedence under unary + and - Issue #7328 has been updated by marcandre (Marc-Andre Lafortune). Hi, trans (Thomas Sawyer) wrote: > "Thomas: Please check your facts, e.g. http://en.wikipedia.org/wiki/Order_of_operations#Exceptions_to_the_standard" > > 1) I did not make this issue. My understanding is that the original poster was wondering why the precedence was like that and that he would have preferred it the other way. Alexey answered correctly that the reason was because of the order or operations in mathematics. I only wanted to suggest that before contradicting someone it was a good idea to check the facts, in particular if one isn't extremely familiar with the field. I didn't mean to offend and I'm sorry if I did. ---------------------------------------- Feature #7328: Move ** operator precedence under unary + and - https://bugs.ruby-lang.org/issues/7328#change-32791 Author: boris_stitnicky (Boris Stitnicky) Status: Rejected Priority: Normal Assignee: Category: Target version: I would like to ask to consider decreasing ** operator precedence just below that of -/+ unary operators. I know that other languages (eg. Python) have ** operator bind tighter than negation, but seeing -1 ** 0.5 give the result -1 and having to type parenthesis (-1) ** 0.5... Even if it's not worth changing, I'd like to hear this rationalized. I've asked about rationalization of this on SO, and nobody seems to know why this precedence is the way it is. -- http://bugs.ruby-lang.org/