Skip to content

Naming conventions for assert commands #8419

@presidento

Description

@presidento

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 (alias assert eq)
  • assert not equal (alias assert neq)
  • assert less-or-equal (alias assert 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:std-libraryDefining and improving the standard library written in Nucategory:enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions