cshaa/filtrex

Add number suffixes (support for units)

Closed this issue · 1 comments

cshaa commented

If a NUMBER is followed by a SYMBOL, we should treat it as a suffixed number and transformed to something like options.suffixedNumber( num, sfx ). If there is no suffixedNumber method, we should throw an error that makes sense to the user as well as the developer.

This would allow us to write expressions like:

width of screen < 800px
cshaa commented

This will be fixed by #38 and #39.