Presence of bare word strings makes addition of new keyword in expression position a breaking change #12767
Labels
needs-design
this feature requires design
stability-concern
Design so we can evolve Nu w/o breaking code post 1.0-stability.
syntax
Changes to the grammar or syntax beyond parser bugfixes
Milestone
Nushell is allowing the user to provide a string in expression positions without quotes (i.e. not command position, e.g. in argument position, inside a list expression etc.)
e.g.
If in the future (post 1.0 stability) we would decide
foo
should become a keyword you can use to work with expressions and accept it in expression position this would break existing code and possibly existing NUON data.For existing keywords we have special logic requiring you to quote them in NUON data, behave already differently when executing existing code and perform the necessary quoting for
to nuon
Possible mitigations
typeof
,async
,lambda
,switch
,...)else
)The text was updated successfully, but these errors were encountered: