Uh oh!
There was an error while loading. Please reload this page.
Adding Numeric Comparison Operators to Templates - #561
Conversation
| - The proposed version of those helpers mimic the behavior of the `<` and `>` operators in Javascript. While this is the | ||
| least surprising thing to do, one could argue that we could add extra logic to protect users from the usual pitfalls | ||
| and edge cases of those operators, **like throwing exceptions if any of the values is `NaN` or a value other than a number**. | ||
| - We must decide if it's worth adding `{{lte}}` and `{{gte}}` helpers, equivalent to `<=` and `>=` respectively. |
There was a problem hiding this comment.
I think I would prefer having them supported too
rwjblue
commented
Jan 22, 2021
👋 Just a quick update here. We discussed this in todays core team meeting, and are generally in favor. We also strongly that Basically, the question is, should We plan to discuss this with the GlimmerVM team and again at next weeks core team meeting, hopefully I'll have another update for folks next week. |
362e723 to
481b643Compare| Equivalent of <arg1> < <arg2> | ||
| This is identical to the `{{lt}}` helper in `ember-truth-helpers` |
There was a problem hiding this comment.
| Equivalent of <arg1> < <arg2> | |
| This is identical to the `{{lt}}` helper in `ember-truth-helpers` | |
| Equivalent of `<arg1> < <arg2>`. | |
| This is identical to the `{{lt}}` helper in `ember-truth-helpers`. |
| Equivalent of <arg1> <= <arg2> | ||
| This is identical to the `{{lte}}` helper in `ember-truth-helpers` |
There was a problem hiding this comment.
| Equivalent of <arg1> <= <arg2> | |
| This is identical to the `{{lte}}` helper in `ember-truth-helpers` | |
| Equivalent of `<arg1> <= <arg2>`. | |
| This is identical to the `{{lte}}` helper in `ember-truth-helpers`. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rwjblue
commented
Jan 29, 2021
We discussed this at todays core team meeting, and with @pzuraq's recent updates (adding @locks - Is going to update some materials for "How we teach this" (that will have to be done prior to merging), but we don't think it will be an issue for the final comment period itself. |
Co-authored-by: Matthew Beale <matt.beale@madhatted.com>
NullVoxPopuli
commented
Dec 1, 2021
has this landed? |
Advance RFC #561 `"Adding Comparison Operators to Templates"` to Stage Ready for Release
Advance RFC #561 `"Adding Comparison Operators to Templates"` to Stage Released
Extracted from RFC #388
Rendered