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

> Most functions in CSS will probably be simple and not use the parameters passed to them many times. Therefore, I think it would be fine to reference them by index number in a special array-like function, arg().

I don't know of this ability existing in any other language; it's certainly not in any I've ever used. Sometimes it might appear in a lang's super-short lambda syntax when they language is *hyper*-optimizing for terseness, but even that's rare; JS and Python lambdas need to name their args, for example.

I don't think we should be innovating here, or introducing the complexity of having multiple ways to refer to an argument, without a very good reason.

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


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

Received on Friday, 9 February 2024 21:20:42 UTC