Re: [csswg-drafts] Proposal: Custom CSS Functions & Mixins (#9350)

Functional languages tend to have a `'let' <vars>+ 'in' <expr>`  syntactic form whose result is `<expr`> which can make use of the 1 or more `<vars>` that are private to the let-expression. 

I've wanted CSS functions for a long time but some of the places I've wanted them I'd only use it once so I could reuse internal computations without leaking a lot of one-time custom properties (my solution in practice is to just shrug and leak a lot of one-time custom properties and hope it doesn't cause any problems later).

If there were a CSS version of let-expressions you could just tell people using functions to use that if they need private stuff and it would be handy for the odd case where you have a handful of things you want to refer to more than once but a function would be overkill. 

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


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

Received on Thursday, 14 September 2023 18:48:52 UTC