nushell/crates/nu-command/src
Stefan Holderbach 9bc4e6794d
Remove math eval command (#7284)
Reasoning: 

Most missing math commands are implemented with #7258.
The `meval` crate itself declares that it doesn't strive to stringent
standards (https://docs.rs/meval/latest/meval/#related-projects).
For example no particular special casing or transformations are
performed to ensure numerical stability. It uses the same rust `std`
library functions we use or have access to (and `f64`).
While the command call syntax in nushell may be a bit more verbose,
having a single source of truth and common commands is beneficial.
Furthermore the `math` commands can themselves implement broadcasting
over lists (or table columns).

Closes #7073

Removed dependencies:
- `meval`
- `nom 1.2.4` (duplicate)

User-Facing Changes:

Scripts using `math eval` will break. 
We remove a further `eval` like behavior to get results through runtime evaluation (albeit limited in scope)

Tests:

- Updated tests that internally used `math eval`.
- Removed one test that primarily used `math eval` to obtain a result from `str join`
2023-01-04 23:50:18 +01:00
..
bits Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
bytes Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
charting Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
conversions Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
core_commands Make stream info visible to users in describe (#7589) 2023-01-03 21:08:05 -08:00
database Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
dataframe let start open anything and everything (#7580) 2023-01-03 10:47:37 -08:00
date Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
deprecated Remove math eval command (#7284) 2023-01-04 23:50:18 +01:00
env Fix an example of env command (#7603) 2022-12-26 16:40:34 +08:00
experimental Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
filesystem let start open anything and everything (#7580) 2023-01-03 10:47:37 -08:00
filters [Chore] cleanup in where implementation (#7679) 2023-01-04 22:50:02 +01:00
formats uniq and uniq-by optimization (#7477) (#7534) 2023-01-04 11:35:49 -08:00
generators Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
hash Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
math Remove math eval command (#7284) 2023-01-04 23:50:18 +01:00
misc Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
network Clarify url base command (#7670) 2023-01-03 15:49:43 -08:00
path Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
platform Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
random Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
shells Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
strings Make get hole errors and cell path hole errors identical (improvement on #7002) (#7647) 2023-01-02 14:45:43 -08:00
system Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
viewers Primitives now use color closures when printed on the command line (#7650) 2023-01-03 23:59:10 -08:00
default_context.rs Remove math eval command (#7284) 2023-01-04 23:50:18 +01:00
example_test.rs Make stream info visible to users in describe (#7589) 2023-01-03 21:08:05 -08:00
input_handler.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
lib.rs Feature cleanup (#7182) 2022-11-22 16:58:11 -08:00
sort_utils.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00