closure-stylesheets icon indicating copy to clipboard operation
closure-stylesheets copied to clipboard

GSS - local variables in mixin

Open slavap opened this issue 10 years ago • 1 comments
trafficstars

It should be possible to declare and use local variable somehow in mixin. Right now it's possible declare @def in mixin, BUT it will be global variable. As workaround I can prefix it with mixin name to prevent names conflict, i.e. @def MIXIN_LOCAL 33; but it's very inconvenient.

slavap avatar Oct 02 '15 18:10 slavap

Yeah, this is not awesome. There are several possible semantics for a @def in a @mixin, so if you have a proposition and are interested in implementing it, let me know.

iflan avatar Oct 05 '15 08:10 iflan