-
-
Notifications
You must be signed in to change notification settings - Fork 5
Much ado about nothing, aka nil #7
Copy link
Copy link
Open
Labels
help wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
All the reference fixtures in JSON format show some properties as having
nullvalues. Lua of course handlesnila bit differently than some languages. For the purposes of comparing fixtures when I load the JSON into a Lua table everything works out fine because thenulls load asnils and the comparison works okay. However trying to get JSON output that matches is a bit more difficult. For external comparison I'm currently stripping the null's usigjq:...but that's a hack.
Should we be using a custom
nullvalue in our AST internally so we can match what other implementations have? Or is Lua'snilhandling going to suffice?