Re: [csswg-drafts] [css-nesting] Syntax suggestion (#4748)

Personal, I like the ampersand implementation. Because it feels more natural for people coming from sass. Although, I'm a bit scared when it comes to consistency. Which might make me prefer to write @nest all the time. On the other hand you could write company/internal guidelines to always use @nest.

Why i'm not a fan of extra brackets and indentation, Is because of how wide your file potentially could become. I agree that you could write guidelines about it, but people are people and deep nesting will happen, with or without guidelines. Companies already make guidelines such as "only nest 3 levels deep in sass", and still sometimes people go deeper. But even with just 3 levels you would already create at least 6 levels of indentation. It feels more unnatural, and more likely will get picked up a lot slower just because of that.

-- 
GitHub Notification of comment by brechtDR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4748#issuecomment-1152900209 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 11 June 2022 11:06:42 UTC