1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-11 11:47:03 +03:00
nickel/doc/manual
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
..
contracts.md Add documentation for extended patterns (#1924) 2024-06-07 08:58:39 +00:00
cookbook.md Use long names for string and numbers 2023-03-08 16:36:13 +01:00
correctness.md Add documentation for extended patterns (#1924) 2024-06-07 08:58:39 +00:00
introduction.md 1.5.0 release (#1853) 2024-03-13 14:54:30 +00:00
merging.md Add documentation for extended patterns (#1924) 2024-06-07 08:58:39 +00:00
modular-configurations.md manual/modular-configurations.md: add argument to std.string.join (#1859) 2024-03-16 03:22:34 +00:00
syntax.md Rename and re-organize primitive operators (#1937) 2024-06-07 11:27:21 +00:00
tutorial.md Add documentation for extended patterns (#1924) 2024-06-07 08:58:39 +00:00
types-vs-contracts.md Add documentation for extended patterns (#1924) 2024-06-07 08:58:39 +00:00
typing.md Add stdlib function array.at_or (#1927) 2024-05-30 09:00:26 +00:00