-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
Rename .string
to .substring
(with alias .substr
)
#918
Comments
Could we instead do something with the assertion |
We already have the @keithamus do you have any idea besides type-checking? |
To be clear, We could add logic to the proxy protection to prevent Alternatively, we could easily add a getter to all chainable method assertions that intercepts Another alternative is to make some more substantial architectural changes to enable newly created assertions to define custom getters to be applied only to their assertion, which would then allow the |
This feels like just another nail in coffin of the whole "property assertions" concept. I think its high time we started to think about removing them, again, but this time for good and in a non-backwards-compatible way. |
This isn't a critical issue; let's punt it to post-v4. |
We'll be deprecating |
The
.string
assertion is very dangerous because it can easily be misused:The above assertion wrongly passes because it has nothing to do with type-checking; instead,
string
is a method assertion that's supposed to be invoked to verify that the given substring is present in the target:Recommended (breaking) change:
The text was updated successfully, but these errors were encountered: