-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorminor changeMarginal behavior change acceptable for a minor releaseMarginal behavior change acceptable for a minor releaseneeds decisionA decision on this change is neededA decision on this change is neededparserLanguage parsing and surface syntaxLanguage parsing and surface syntax
Milestone
Description
Intuitively I would have imagined that (;) would be the syntax for the empty NamedTuple, whereas it returns nothing instead. After posting it on slack it seems that the rationale is that it is parsing as a concatenation of expressions. For example (1;) returns 1, so (;) should return the value of the first expression which is nothing.
I'm not sure which is more intuitive but maybe it could be changed to return NamedTuple(). The change in technically breaking though I imagine in practice very little code will rely on (;) === nothing
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorminor changeMarginal behavior change acceptable for a minor releaseMarginal behavior change acceptable for a minor releaseneeds decisionA decision on this change is neededA decision on this change is neededparserLanguage parsing and surface syntaxLanguage parsing and surface syntax