You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow functions and mixins to be called via custom properties to support some additional interesting use cases. The syntax in the current proposal seems like it might need a little tweaking to support this. Here's a rough sketch that needs a lot more fleshing out if this idea doesn't have some obvious fatal flaw.
The suggestion in the current proposal is that functions/mixins are global, and while this allows some composition, it's limited since it must be determined at thte point of consumption, and it's cumbersome (requiring some companion variable) for the caller to do so.
Basic Idea
Introduce a way to "call" mixins/functions, say, using a built-in function called call that accepts var:
Allow functions and mixins to be called via custom properties to support some additional interesting use cases. The syntax in the current proposal seems like it might need a little tweaking to support this. Here's a rough sketch that needs a lot more fleshing out if this idea doesn't have some obvious fatal flaw.
The suggestion in the current proposal is that functions/mixins are global, and while this allows some composition, it's limited since it must be determined at thte point of consumption, and it's cumbersome (requiring some companion variable) for the caller to do so.
Basic Idea
Introduce a way to "call" mixins/functions, say, using a built-in function called
call
that acceptsvar
:Use Cases
The text was updated successfully, but these errors were encountered: