nushell/crates/nu-std/std
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
..
assert.nu Implement annotations support in test runner (#9406) 2023-07-02 10:41:33 +02:00
dirs.nu remove let-env, focus on mutating $env (#9574) 2023-07-01 07:57:51 +12:00
dt.nu Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00
formats.nu add 'from ndjson' into standard library (#10283) 2023-09-11 14:59:07 +02:00
help.nu remove let-env, focus on mutating $env (#9574) 2023-07-01 07:57:51 +12:00
input.nu Command to get individual keys (#9453) 2023-07-03 10:23:44 -05:00
iter.nu Add zip-into-record to std iter (#9395) 2023-06-10 20:15:30 +02:00
log.nu change LOG_FORMAT to NU_LOG_FORMAT in nu-std library (#10254) 2023-09-06 10:17:14 -07:00
math.nu move math constants to standard library (#9678) 2023-09-05 19:32:31 +02:00
mod.nu add std repeat command to replace "foo" * 3 (#10339) 2023-09-12 21:59:31 +02:00
testing.nu Remove python-like string multiplication (#10293) 2023-09-13 19:52:04 +12:00
xml.nu Improve type hovers (#9515) 2023-06-29 05:19:48 +12:00