Closed
Description
This is just a follow up of discussions at #2776 (comment) and #2798 (comment).
A.k.a.:
"Less needs to finally stop pretending that guards are similar to CSS
@media
, they are not".
In summary, currently (at 2.6.0
) we have these two directly opposite requirements:
when (true) and (true) // valid
when (true) = (true) // not valid
and in the same time
when (true = true) // valid
when (true and true) // not valid
It's not that this is impossible to code, but it does not look practical, taking into account that all this expressions may nest each other and must follow certain operator precedence.