mirror of
https://github.com/nushell/nushell.git
synced 2025-05-19 01:10:48 +02:00
# Description This PR makes `match` no longer run closures as if they were blocks. This also allows returning closures from `match` without needing to wrap in an outer subexpression or block. Before PR: ```nushell match 1 { _ => {|| print hi} } # => hi ``` After PR: ```nushell match 1 { _ => {|| print hi} } # => closure_1090 ``` # User-Facing Changes * `match` no longer runs closures as if they were blocks # Tests + Formatting N/A # After Submitting N/A |
||
---|---|---|
.. | ||
compile | ||
call_ext.rs | ||
closure_eval.rs | ||
column.rs | ||
command_prelude.rs | ||
documentation.rs | ||
env.rs | ||
eval_helpers.rs | ||
eval_ir.rs | ||
eval.rs | ||
glob_from.rs | ||
lib.rs | ||
scope.rs |