-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Naming conventions for assert commands #8419
Copy link
Copy link
Closed
Labels
A:std-libraryDefining and improving the standard library written in NuDefining and improving the standard library written in Nucategory:enhancementNew feature or requestNew feature or request
Milestone
Description
Related problem
I like the Nushell naming convetion, I mean here we do not use abbreviations too much. For example we have str substring, not str substr. And so on.
Describe the solution you'd like
Follow the existing naming convention for assert commands in std.nu, while keep the Rust-like abbeviations as aliases. For example have (with alias):
assert equal(aliasassert eq)assert not equal(aliasassert neq)assert less-or-equal(aliasassert lte)- etc.
Describe alternatives you've considered
Some languages use the abbreviated names for assertions, some use full names. I think with Nushell the full name is more natural.
Additional context and details
This is a follow-up issue from #8405 (comment). Involve @amtoine.
I'll send a PR if we can agree on this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:std-libraryDefining and improving the standard library written in NuDefining and improving the standard library written in Nucategory:enhancementNew feature or requestNew feature or request