nushell/crates/nu-protocol/src/value
Stefan Holderbach 7f39609d9a
Remove python-like string multiplication (#10293)
# Description
Currently we support "multiplication" of strings, resulting in a terse
way to repeat a particular string.
This can have unintended side effects when dealing with mixed data (e.g.
after parsing data that is not all numbers).
Furthermore as we frequently fall-back to strings while parsing source
code, this introduced a runaway edge case in const evaluation (#10212)

Work for #10233

## Details
- Remove python-like string multiplication.
- Workaround for indentation
  - This should probably be addressed with a purpose built command
- Remove special const-eval error test

# User-Facing Changes
**Major breaking change!**
`"string" * 42` will stop working. (This was used for example in the
stdlib)

We should bless a good alternative before landing this

---------

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2023-09-13 19:52:04 +12:00
..
custom_value.rs Fix to json for SQLite databases (#8343) 2023-03-06 14:36:26 -08:00
from_value.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
from.rs Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
lazy_record.rs Create Record type (#10103) 2023-08-25 07:50:29 +12:00
mod.rs Remove python-like string multiplication (#10293) 2023-09-13 19:52:04 +12:00
range.rs Auto format let-else block (#10214) 2023-09-04 19:42:31 +12:00
record.rs Create Record type (#10103) 2023-08-25 07:50:29 +12:00
stream.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
unit.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00