mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Rename all?
, any?
and empty?
(#6464)
Rename `all?`, `any?` and `empty?` to `all`, `any` and `is-empty` for sake of simplicity and consistency. - More understandable for newcomers, that these commands are no special to others. - `?` syntax did not really aprove readability. For me it made it worse. - We can reserve `?` syntax for any other nushell feature.
This commit is contained in:
@ -11,8 +11,8 @@ fn reports_emptiness() {
|
||||
[([[check]; [{}] ])]
|
||||
]
|
||||
| get are_empty
|
||||
| all? {
|
||||
empty? check
|
||||
| all {
|
||||
is-empty check
|
||||
}
|
||||
"#
|
||||
));
|
||||
|
Reference in New Issue
Block a user