Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of short-circuit @if condition evaluation #254

Closed
ChristianPeters opened this issue Jan 23, 2012 · 0 comments
Closed

Lack of short-circuit @if condition evaluation #254

ChristianPeters opened this issue Jan 23, 2012 · 0 comments

Comments

@ChristianPeters
Copy link

@if $ie and $ie <= 7
  position: absolute
  left: 50px
@else 
  position: relative

This renders a syntax error: Undefined operation: "false lte 7". if $ie is false.

If I would have to choose between short-circuit and eager evaluation, I chose the former one because it's the more useful behavior in 99% of cases. In fact, some languages like PHP or Javascript do not even have an eagerly evaluating operator.

The docs do not say anything about boolean operators. I think they are essential though.

@nex3 nex3 closed this as completed in b7bde56 Jan 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants