Garry Hill wrote:
> I don't see how we could do this. The '-' prefix usually donates a non- 
> standard attribute or some kind of experimental feature. Checking to  
> see if lines, outside of the root, that start with '-' are attributes  
> rather than incorrectly placed mixin definitions would involve having  
> a list of correct attribute names. This list would be difficult to  
> compile and impossible to maintain.
>
> One of the things I like about Sass is that it doesn't check for any  
> validity in the CSS, you can put any attributes, tag-names or pseudo  
> classes in that you want and it just spits out the CSS as if you knew  
> what you were doing. This gives it great stability as CSS and HTML  
> evolve.
>   
No, no, I mean that attributes will always match one of two regexps that 
mixins won't (specifically, Sass::ATTRIBUTE and 
Sass::ATTRIBUTE_ALTERNATE_MATCHER). This is the same way we distinguish 
attributes from plain old rules.
> I must say I'm finding it hard to understand why changing the '-' to  
> some other character right now, when potentially I'm the only person  
> on the planet that's actually using the new mixin code, is so  
> objectionable. It's an easy and absolutely valid fix to a simple  
> problem that I should have foreseen when I proposed the mixin syntax  
> in the first place. If this were widely used code and changing it  
> would suddenly break thousands of sites then I can see the issue,  
> however this just isn't the case at the moment.
>   
I mostly just like the symmetry between + and - :-p.

- Nathan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to