Try   HackMD

Nushell core team meeting 2025-04-23

Attendees

  • Stefan
  • Bahex
  • Jack
  • Piet
  • Storm
  • Amtoine
  • Douglas
  • Loic329
  • Darren
  • Jan9103

Agenda

  • try {} finally {} value semantics discord
    ​​​​$IN
    ​​​​| try {
    ​​​​    # <== $IN
    ​​​​    ...
    ​​​​    # ==> $SUCC / $ERR
    ​​​​} catch {
    ​​​​    # <== $ERR
    ​​​​    ...
    ​​​​    # ==> $CATCH
    ​​​​} else {
    ​​​​    # <== $SUCC
    ​​​​    ...
    ​​​​    # ==> $ELSE
    ​​​​} finally {
    ​​​​    # <== $CATCH / $ELSE
    ​​​​    ...
    ​​​​    # ==> $FINALLY
    ​​​​}
    ​​​​# ==> $FINALLY
    
    If a block is not given, it acts as if it's an empty block (i.e. returning its input as it is)
  • update with multiple columns vs update cells
    Some considerations
    ​​​​def update [
    ​​​​    fields: one_of(cell-path, list<cell-path>),
    ​​​​    replacement: any
    ​​​​]
    
    ​​​​| update field_a {|| ...}
    ​​​​| update [field_a field_b] {|| ...}
    
    Would this be useful?
  • .

Discussed Topics

  • try {} finally {}
    • not entirely against it
    • but complete for nu commands would probably be a better fit
    • return inside try is already not handled well, this would be more confusing
    • => Try to build a complete for nu commands and see if we like that