show() of nullary terms omits parens
Bug #587787 reported by
Matt Giuca
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mars |
Fix Released
|
Low
|
Matt Giuca |
Bug Description
type Nullary:
Null()
?> Null
<constructor function Null>
?> Null()
Null
Expected result:
?> Null()
Null()
Printing "Null" implies that the expression Null evaluates to the same value, which it does not. Empty parens are required in the output.
This is a deficiency in the val_term constructor of interpret -- it cannot distinguish between parameterless and nullary terms. Change the list to a maybe(list), and remove the special case for the empty list when displaying.
Related branches
Changed in mars: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in trunk r1086.