Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make type checking optional #28

Merged
merged 1 commit into from
Feb 9, 2016
Merged

Conversation

davidchambers
Copy link
Member

Closes #6

I'm not fond of Boolean flags, but { checkTypes :: Boolean } would introduce a separate problem: one could provide an invalid value such as {typeCheck: true}. I'd prefer to avoid having to name the option.

When viewing the changes, run location.search = '?w=' in your console for best results. ;)


The first argument to `$.create` determines whether type checking is enabled.
One may elect to pay the performance cost of run-time type checking only during
development. For example:
Copy link
Member Author

Choose a reason for hiding this comment

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

It's possible to misread the second sentence:

Only during development may one elect to pay the performance cost of run-time type checking.

💯 points to the first person to suggest an unambiguous alternative. :)

Copy link
Member

Choose a reason for hiding this comment

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

How about:

This allows one to only pay the performance cost of run-time type type checking during development.

Copy link
Member Author

Choose a reason for hiding this comment

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

💯 points for Stefano!

Copy link
Member

Choose a reason for hiding this comment

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

You're up late!

Copy link
Member Author

Choose a reason for hiding this comment

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

@davidchambers davidchambers force-pushed the dc-optional-type-checking branch from 399a442 to 3577169 Compare February 2, 2016 01:53
The first argument to `$.create` determines whether type checking is enabled.
This allows one to only pay the performance cost of run-time type checking
during development. For example:

Choose a reason for hiding this comment

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

Great to make this an argument rather than env var or an arbitrary check.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep. I want to stay out of the application configuration game. :)

@soroushjp
Copy link

@davidchambers Should we add some sort of CI to automatically run tests on PRs?

@davidchambers
Copy link
Member Author

Should we add some sort of CI to automatically run tests on PRs?

We're using CircleCI.

@soroushjp
Copy link

We're using CircleCI.

Sorry, missed that -- thought the "1 successful check" was referring to merge conflicts.

@davidchambers davidchambers force-pushed the dc-optional-type-checking branch from 3577169 to e196bc1 Compare February 9, 2016 22:20
davidchambers added a commit that referenced this pull request Feb 9, 2016
@davidchambers davidchambers merged commit de9ad3f into master Feb 9, 2016
@davidchambers davidchambers deleted the dc-optional-type-checking branch February 9, 2016 22:27
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