-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
undefined behavior for nested brace expansion #13693
Comments
@kellyselden do you know if there are any tests for "nested" brace expansion in the project? I only found this one: https://github.com/emberjs/ember.js/blob/master/packages/ember-metal/tests/computed_test.js#L461-L482 Also are there any docs on nested brace expansion? I found https://guides.emberjs.com/v2.6.0/object-model/computed-properties/#toc_computed-properties-in-action My thoughts are that to support "nested brace expansion" we'd need some tests and docs. Maybe the way is to answer the question "Is it supported?" is to start with adding a test that clearly makes it unsupported, since there are no tests or docs nesting. However, that does seem like an edge case. If there are no docs or tests that indicated you could use "nested brace expansion". Even simpler - update in the guides to indicate that nesting braces in a computed property is not supported. Alternatively - like using spaces is not supported with brace expansion, https://github.com/emberjs/ember.js/blob/master/packages/ember-metal/tests/computed_test.js#L484-L491 It may be a good idea to have a test and assertion that a computed property cannot use "nested brace expansion". |
In emberjs#13693, it is asked to error for an unsupported feature. Though we don't say that this is not supported, it would be nice if we could let the user know that what he is trying to do will not work instead of silently fail. Fixes emberjs#13693
In emberjs#13693, it is asked to error for an unsupported feature. Though we don't say that this is not supported, it would be nice if we could let the user know that what he is trying to do will not work instead of silently fail. Fixes emberjs#13693
In emberjs#13693, it is asked to error for an unsupported feature. Though we don't say that this is not supported, it would be nice if we could let the user know that what he is trying to do will not work instead of silently fail. Fixes emberjs#13693
I've come across some code that could use nested brace expansion. I tried it out manually first and got this:
I've read this which hints that it was discussed or decided to not support. If it is unsupported, perhaps it should error, like when you put a space in. Or maybe it just needs a regex update to fully support it? It could make computeds further collapsable.
The text was updated successfully, but these errors were encountered: