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
It would be great that we can have the alias method in sass, it will help a lot in building concise API. And furthermore, I see that there is a pattern in alias is that :
One method can have an alias or a "negative-alias" ( I haven't found a good name yet for this kind of method ), that the "negative-alias" just returns opposite result of a method.
@functionis_true(){@returntrue}aliasnot_false,is_true;negative_aliasis_true,is_false;# is_false is internally defined# @function is_false() {# @return not is_true();# }
This kind of operation is suitable for function either return true or false. But still, we can return array of values or empty array, hash of values or empty hash.
The text was updated successfully, but these errors were encountered:
It would be great that we can have the alias method in sass, it will help a lot in building concise API. And furthermore, I see that there is a pattern in alias is that :
One method can have an alias or a "negative-alias" ( I haven't found a good name yet for this kind of method ), that the "negative-alias" just returns opposite result of a method.
This kind of operation is suitable for function either return true or false. But still, we can return array of values or empty array, hash of values or empty hash.
The text was updated successfully, but these errors were encountered: