mirror of
https://github.com/tweag/nickel.git
synced 2024-09-17 14:37:30 +03:00
4c29726b98
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. |
||
---|---|---|
.. | ||
integration | ||
snapshot |