Coder Social home page Coder Social logo

@mixins about lessphp HOT 7 CLOSED

leafo avatar leafo commented on September 25, 2024
@mixins

from lessphp.

Comments (7)

leafo avatar leafo commented on September 25, 2024

I do agree that this is a problem. For the time being I am going to continue to use @ for sake of compatibility though. If I decide to take the project in a different direction though, this is one of the things I will change.

from lessphp.

jtousek avatar jtousek commented on September 25, 2024

I understand that, but I still think it'd be good to have it optional. For example whan i want "MyClass extends lessc{...}", it'd be really nice to change this with no need to modify your code. If you make it optional, but the default would be @ it would not break anything. ;)

from lessphp.

leafo avatar leafo commented on September 25, 2024

It's good that you mentioned this actually. I completely forgot that I allowed % as a drop in replacement for@ in any mixin. That might solve your problem.

Internally I use % as the mixin prefix to prevent collision in the variable namespace.

from lessphp.

jtousek avatar jtousek commented on September 25, 2024

Well I don't actually like %, because now it's already used as unit and as modulo operator. So I still must suggest to disable % and enable $ or make it optional.
I also have some other proposals for upgrading less, can i post them here as "issues" (for others to see them).

from lessphp.

leafo avatar leafo commented on September 25, 2024

yes please do

from lessphp.

jtousek avatar jtousek commented on September 25, 2024

I will. :)
Oh one more thing to this one. I see the variables mPrefix and vPrefix and I love them, but I also prefer using "=" to assign value to a variable in place of ":". Can you make this optional to, please?

from lessphp.

leafo avatar leafo commented on September 25, 2024

: and = are interchangeable now for assignment.

from lessphp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.