Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.

Update docs to encourage only performing operations within parentheses - #29

Closed
dmcass wants to merge 1 commit into
less:masterfrom
dmcass:math
Closed

dmcass wants to merge 1 commit into
less:masterfrom
dmcass:math

Conversation

@dmcass

@dmcass dmcass commented Aug 22, 2012

Copy link
Copy Markdown
Contributor

Pretty much exactly what the title says. Let me know if you want me to change anything.

@EvanLovely

Copy link
Copy Markdown

Out of curiosity, why? I see that you said this in the commit:

Operations should only be performed within parentheses in order to ensure compatibility with CSS.

@dmcass

dmcass commented Oct 8, 2012

Copy link
Copy Markdown
Contributor Author

Because LESS will be moving to that model. In a future version of LESS any operations performed outside of parentheses will not be evaluated. CSS is using forward slash to delimit multiple values of the same type (elliptical border-radius, background shorthand), and they may use other "operators" in the future to do something different. Encouraging people to wrap their operations in parentheses now means less breakage in the future.

@EvanLovely

Copy link
Copy Markdown

Awesome, thanks for the background! Good habits now that make less stress in the future sounds good to me!

@lukeapage

Copy link
Copy Markdown
Member

great, will commit this when I do 1.3.1

@lukeapage

Copy link
Copy Markdown
Member

pulled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants