nushell/crates/nu-cmd-lang/src
Ian Manske 7a7d43344e
Range refactor (#12405)
# Description
Currently, `Range` is a struct with a `from`, `to`, and `incr` field,
which are all type `Value`. This PR changes `Range` to be an enum over
`IntRange` and `FloatRange` for better type safety / stronger compile
time guarantees.

Fixes: #11778 Fixes: #11777 Fixes: #11776 Fixes: #11775 Fixes: #11774
Fixes: #11773 Fixes: #11769.

# User-Facing Changes
Hopefully none, besides bug fixes.

Although, the `serde` representation might have changed.
2024-04-06 09:04:56 -05:00
..
core_commands Range refactor (#12405) 2024-04-06 09:04:56 -05:00
default_context.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
example_support.rs Range refactor (#12405) 2024-04-06 09:04:56 -05:00
example_test.rs remove def-env and export def-env (#10999) 2023-11-19 23:25:09 +08:00
lib.rs cratification: Example support (#8231) 2023-02-27 13:58:56 -08:00