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

feature request for compile time assert to print message #54

Open
nbingham1 opened this issue Jul 1, 2016 · 1 comment
Open

feature request for compile time assert to print message #54

nbingham1 opened this issue Jul 1, 2016 · 1 comment

Comments

@nbingham1
Copy link

spec {
assert()
}

needs to be able to print a given message. Maybe like this?

spec {
assert<EXPR, "print this message">()
}

@fangism
Copy link
Owner

fangism commented Jul 1, 2016

I'd propose something like this:

spec {
   assert<EXPR, STRING>()
}

Right now, it is:

spec {
  assert<EXPR, EXPR, EXPR, ...>()
}

and it checks that all expressions are true. I wonder if I can come up with a poor-man's workaround...

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

No branches or pull requests

2 participants