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
I saw couple of issues related to this topic. I believe it has been scrapped for the sake of simplicity and in favor of global variables.
Given following example, accessors DRY up variable names and makes it look more readable especially when there are too many global variables. IMO, its a nice option to have unless it makes the implementation more complicated.
+1
It has come to the point where trying to work around the lack of accessors gets more and more complicated. This feature would be really, really useful.
This is the first open issue on accessors that I found, so I'll comment here.
I agree with the others - I think accessors can be very useful for grouping variables together in bundles - e.g. colors, images, font sizes etc.
However, if they're not coming back, maybe at least the docs could be updated to reflect the change, because right now it's kind of misleading. This was the feature that made me switch from dotless to less.js and now that it's not here I'm a bit disappointed, although I’m not sorry I switched.
Anyway, with or without accessors less is great so keep up the good work!
Activity
cloudhead commentedon Jul 12, 2010
See http://github.com/cloudhead/less.js/issues/closed#issue/6
bhavinkamani commentedon Jul 12, 2010
Hi,
I saw couple of issues related to this topic. I believe it has been scrapped for the sake of simplicity and in favor of global variables.
Given following example, accessors DRY up variable names and makes it look more readable especially when there are too many global variables. IMO, its a nice option to have unless it makes the implementation more complicated.
// #color[@brand] #color { @brand: #DDD; @background: #EEE; @title: #555; } // global Variables @brand-color: #DDD; @background-color: #EEE; @title-color: #555;Looking forward to hearing your thoughts...
Regards
Bhavin
zvictor commentedon Jul 6, 2011
I agree with bhavinkamani.
Accessors are very important. I still use the old Less because of them.
sergeylukin commentedon Aug 27, 2011
+1
IMHO accessors may be very helpful
nswaldman commentedon Oct 26, 2011
+1
It has come to the point where trying to work around the lack of accessors gets more and more complicated. This feature would be really, really useful.
gstoyanov commentedon Jan 19, 2012
This is the first open issue on accessors that I found, so I'll comment here.
I agree with the others - I think accessors can be very useful for grouping variables together in bundles - e.g. colors, images, font sizes etc.
However, if they're not coming back, maybe at least the docs could be updated to reflect the change, because right now it's kind of misleading. This was the feature that made me switch from dotless to less.js and now that it's not here I'm a bit disappointed, although I’m not sorry I switched.
Anyway, with or without accessors less is great so keep up the good work!
alex-netkachov commentedon May 11, 2012
+1
Grigore147 commentedon Dec 27, 2012
+1
Any idea when this would be implemented back? It could be very useful.
seven-phases-max commentedon Jan 16, 2016
Merging to #1848.