-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
|
||
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: |
There was a problem hiding this comment.
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. :)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 points for Stefano!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're up late!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚡
399a442
to
3577169
Compare
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: | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. :)
@davidchambers Should we add some sort of CI to automatically run tests on PRs? |
We're using CircleCI. |
Sorry, missed that -- thought the "1 successful check" was referring to merge conflicts. |
3577169
to
e196bc1
Compare
make type checking optional
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. ;)