News for hackers. Stuff that matters.
Re:Help pick a syntax for CSS nesting by Etheryte on Wednesday July 27, 2022 @05:59AM (#32248604)
Perhaps I simply don't see the ambiguity after having used Scss, Less and the like for a long time, but isn't the simple `&` by far the best option here? The other two are absurdly verbose without offering any real benefit.
Re:Help pick a syntax for CSS nesting by esteth on Wednesday July 27, 2022 @06:34AM (#32248797)
The simple '&' requires infinite lookahead to parse.
Re:Help pick a syntax for CSS nesting by aasasd on Wednesday July 27, 2022 @06:54AM (#32248929)
Afaict the lookahead problem refers not to the proposals, but to a syntax without these extra markers altogether. Which is why all the proposals have some markers.
Re:Help pick a syntax for CSS nesting by jimmaswell on Wednesday July 27, 2022 @07:06AM (#32249023)
So what? That's a complete non-problem.
Re:Help pick a syntax for CSS nesting by jeshin on Wednesday July 27, 2022 @07:42AM (#32249288)
no it doesn't, the simple no-prefix solution requires infinite lookahead