Post

1 follower Follow
0
Avatar

Make && and || operators behave like logical operators rather than bitwise operators

At the moment short circuit logical operators && and || are used like bit-wise operators & and | in workflows and custom actions, which results in the following computation:

false && true is False 
false && true || true is True

This is confusing for programmers coming to Clarizen. The workaround is using brackets, i.e. false && (true || true) is False.

I would like to recommend adding the bitwise & and | operators to Clarizen, and turning the existing && and || to logical operators. "false && anything" should not evaluate the right hand side of the operation, whereas "false & anything" should evaluate both sides.

This would allow instant familiarity to developers starting to use to Clarizen's customisation functionality.

 

Ekin Caglar Not planned

Please sign in to leave a comment.