1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-11 11:47:03 +03:00
nickel/cli
Yann Hamdaoui 4c29726b98
Rename and re-organize primitive operators (#1937)
Primitive operators haven't got much love, as opposed to user-facing
interfaces like the stdlib, and they have grown organically since the
beginning of the very first Nickel prototype. As a result, the naming is
inconsistent, with several generations, both in the surface syntax of
Nickel and internally in the Rust codebase.

This PR makes a cleaning pass on primitive operators, by:

1. Use full worlds in the style of the current stdlib: `str` ->
   `string`, `num` -> `number`, etc.
2. Introduce pseudo-namespaces: instead of `str_foo` and `record_bar`,
   we use `/` as a separator for categories. The previous examples
   become `string/foo` and `record/bar`. We don't use `.`, to make it
   clear that it's not a normal record access, but just a nice way to
   dinstinguish the different categories
3. Align old operators on the current naming in the standard library.
2024-06-07 11:27:21 +00:00
..
src Fix clippy 1.75 warnings (#1750) 2024-01-07 17:32:34 +00:00
tests Rename and re-organize primitive operators (#1937) 2024-06-07 11:27:21 +00:00
Cargo.toml Add --version support to NLS, fix feature unif (#1936) 2024-06-03 14:59:26 +00:00