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

Provide non-DSL spellings of primitives #262

Merged
merged 1 commit into from
Jan 3, 2018
Merged

Conversation

CodaFi
Copy link
Member

@CodaFi CodaFi commented Dec 28, 2017

What's in this pull request?

#261 requests a way to spell the testing primitives without using the DSL.

What's worth discussing about this pull request?

Operators in Swift have a complex and storied history, and their use outside of the standard library is the subject of a lot of styling debates. Many frameworks that choose to provide custom operators do so because they are trying to mimic a particular syntax or structure. The trap many fall into is not providing a way out of the DSL.

What downsides are there to merging this pull request?

On the other hand, SwiftCheck's DSL isn't just a matter of syntax. Tests are data in this framework, and can be stored and computed with. <- indicates when you want to statement-ize that data and execute the test. Providing an out dilutes that philosophy.

@CodaFi
Copy link
Member Author

CodaFi commented Dec 28, 2017

@alexhuang91 I'm unable to tag you as a reviewer, but I would still like you to review this.

@CodaFi
Copy link
Member Author

CodaFi commented Jan 3, 2018

⛵️

@CodaFi CodaFi merged commit 88cc3e9 into typelift:master Jan 3, 2018
@CodaFi CodaFi deleted the de-DSL branch January 3, 2018 15:25
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.

2 participants