Order of operations

Features wanted...
Post Reply
PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Order of operations

Post by PeterH »

Hi Don,

you asked for best order of operations in loose Boolean match.
I think if !a !b !c = !(a !b !c), it should also be
= !(a !(b !c)) ?? But noone would understand this...
So I would suggest to say
!a !b !c = (!a) (!b) (!c)
Another reason: between the operands you imply "&", so & is the operation between the operands, while ! is like an operand-prefix, isn't it?

Peter

admin
Site Admin
Posts: 60595
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Order of operations

Post by admin »

PeterH wrote:!a !b !c = (!a) (!b) (!c)
Thanks, I agree 100%.

Post Reply