at-import / Sassy-math

Complex math functions for Sass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use a prefix

mmintel opened this issue · comments

hi,

is it possible to use a prefix for functions in order to avoid conflicts with other frameworks?

thanks!

Curious why one would want to prefix math functions. All math functions should in theory expect the same input and produce the same output. What conflicts are you running into?

I am including different libraries which bring some functions on their own and besides that I want to encapsulate libraries with my own functions which add specific error handling. For example I can't use my own power function and still use your power function because I would overwrite your function or I would have to prefix my own function.

Sassy Math is meant to be similar to a math header file in other languages, like C for instance. In fact, all it really does is expose the Ruby math functions to Sass land. They're pretty much as primitive as you can get. I'm not sure if wanting to wrap primitive math functions with custom error handling is enough reason to add complexity and bump the major version here.