You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
😎 T-Regx The Dinosaur is proud to announce its release 0.14.0! That's a quick release with the update of a few names regarding Pattern::compose(). allMatch() wasn't a really good name, was it?
The detailed list of changes is also in ChangeLog.md.
Breaking changes
Name Pattern::compose()->allMatch() was horrible, we renamed it to testAll()
Name Pattern::compose()->anyMatches() wasn't good either, we renamed it to testAny()
So, if you want to test a composite pattern, you just type Pattern::compose()->test and choose Any() or All() :)
Renamed Pattern::compose()->chainedRemove() to prune(), because "chained remove" was basically prune, just with a more scary name 😨
Features
Added Pattern::compose()->failAny(), returning true if any of the patterns didn't match the subject
Added Pattern::compose()->failAll(), returning true if all the patterns didn't match the subject
Same as before, if you'd like to check if your composite pattern fails a subject, just type Pattern::compose()->fail and choose Any() or All() :)
The detailed list of changes is also in ChangeLog.md.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
😎 T-Regx The Dinosaur is proud to announce its release
0.14.0! That's a quick release with the update of a few names regardingPattern::compose().allMatch()wasn't a really good name, was it?The detailed list of changes is also in ChangeLog.md.
Breaking changes
Pattern::compose()->allMatch()was horrible, we renamed it totestAll()Pattern::compose()->anyMatches()wasn't good either, we renamed it totestAny()So, if you want to test a composite pattern, you just type
Pattern::compose()->testand chooseAny()orAll():)Pattern::compose()->chainedRemove()toprune(), because "chained remove" was basically prune, just with a more scary name 😨Features
Pattern::compose()->failAny(), returningtrueif any of the patterns didn't match the subjectPattern::compose()->failAll(), returningtrueif all the patterns didn't match the subjectSame as before, if you'd like to check if your composite pattern fails a subject, just type
Pattern::compose()->failand chooseAny()orAll():)The detailed list of changes is also in ChangeLog.md.
Rawrrrr!
This discussion was created from the release v0.14.0 - Quicky `Pattern::compose()` update.
Beta Was this translation helpful? Give feedback.
All reactions