I didn't see this addressed in any SASS documentation, so I'll try here.
If you have multiple arguments, is there a way to pass only an argument later than the first without passing the first?
In javascript you could use empty quotes to indicate that you want to skip that argument, but that doesn't appear to work with SASS. e.g., myFunction('','',500);
What do you do in SASS to indicate empty arguments?
"In Sass 3, there's no way to use the default values for the first arguments to a mixin and a non-default value for later arguments. Sass 3.1, currently in development, supports passing arguments by name, but in 3.0 the best way to do this is just to manually pass in the default values."
You can actually do named arguments. We have started to use this a little inside the Ext 4 theme. This is one of the reasons you need the bleeding edge versions of all the gems to be able to compile to Ext 4 theme. You can use named arguments like this:
I've only been exploring SASS for a couple days now. It's funny that it doesn't naturally support the very first thing I wanted it to do. It seemed like an obvious thing to do when you have the option to specify default values. It kind of defeats the purpose of using arguments if you need to pass back the default values to get at an argument later in the list.