Skip to content

Conversation

@apalm
Copy link
Contributor

@apalm apalm commented Mar 7, 2017

Resolves #170.

lib/json.js Outdated
var string = require("./string.js");
var utils = require("./utils.js");

var nulll = primitive.constant(null);
Copy link
Contributor Author

@apalm apalm Mar 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if this is better than e.g.

var nulll = arbitraryBless({
  generator: generator.constant(null),
  shrink: shrink.noop,
  show: show.def,
});

Also, suggestions for a better name than nulll welcome 😅

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null_constant

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nullArb.

@StoneCypher I don't use snake_case in the code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was joking

@apalm apalm force-pushed the gh-170 branch 2 times, most recently from b074217 to f10c23d Compare March 7, 2017 22:56
Copy link
Member

@phadej phadej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nulll -> nullArb

@phadej phadej merged commit b363b07 into jsverify:master Mar 8, 2017
@phadej
Copy link
Member

phadej commented Mar 8, 2017

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants