nushell/crates/nu-engine/src
Stefan Holderbach 2ccb91dc6a
Add logical xor operator (#7242)
We already have the binary `bit-xor` and the shortcircuiting logical
`or`(`||`) and `and`(`&&`).
This introduces `xor` as a compact form for both brevity and clarity.
You can express the operation through `not`/`and`/`or` with a slight
risk of introducing bugs through typos.

Operator precedence

`and` > `xor` > `or`

Added logic and precedence tests.
2022-11-26 17:02:37 +01:00
..
call_ext.rs Friendly error message for access beyond end (#6944) 2022-10-29 19:47:50 +02:00
column.rs Improve CantFindColumn and ColumnAlreadyExists errors (#7164) 2022-11-19 09:35:55 -08:00
documentation.rs Clean up keyword lines in help (#7243) 2022-11-26 20:16:39 +13:00
env.rs Fix environment conversions (#7092) 2022-11-11 13:13:07 +13:00
eval.rs Add logical xor operator (#7242) 2022-11-26 17:02:37 +01:00
glob_from.rs Run a round of clippy --fix to fix a ton of lints (#7006) 2022-11-04 15:11:17 -05:00
lib.rs New commands: break, continue, return, and loop (#7230) 2022-11-25 09:39:16 +13:00
scope.rs Add input-output types to $nu.scope.commands (#7105) 2022-11-12 14:26:20 -08:00