Bracket lists shouldn't be == to parenthesized lists
See original GitHub issueCurrently bracketed lists in 3.5 are ==
-equivalent to parenthesized lists with the same contents. This doesn’t match the behavior of lists with different separators, or the general principle that ==
-equivalence should roughly track CSS equivalence.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
What's the difference between lists enclosed by square ...
Square brackets are lists while parentheses are tuples. A list is mutable, meaning you can change its contents: >>> x = [1,2] >>>...
Read more >2.4 Pairs, Lists, and Racket Syntax
A value that prints like a quoted identifier is a symbol. In the same way that parenthesized output should not be confused with...
Read more >2.4 Pairs, Lists, and Scheme Syntax
A value that prints like an identifier is a symbol. In the same way that parenthesized output should not be confused with expressions,...
Read more >Why do lists use brackets instead of parenthesis?
Lists are defined by the brackets. Function parameters and tuples are defined by the parens. Dictionaries and sets are defined by the braces....
Read more >Python parentheses primer
Shouldn't t be a tuple?” No, t is an integer. ... The square brackets tell Python that this is a list comprehension, producing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To add some more detail: in Sass’s internals, lists never have parentheses. When you write
(1 2 3)
, the parentheses mean the same thing that they do in(1 + 1)
—they just group the expression. So the only question is whether a list has brackets or has no brackets, which is answered byis-bracketed()
.Sorry for the short reply I’m on my phone. I think you’ll find most of the answers in sass-graph
https://github.com/sass/sass-spec/tree/master/spec/sass_3_5/functions
Check out the join and is-bracketed folders.
On 14 May 2017 8:53 pm, “Miriam Suzanne” notifications@github.com wrote: