On 11 Apr 2008, at 17:16, Nathan Weizenbaum wrote:

> We could also check to make sure that lines beginning with - are
> actually attributes when they aren't in the root. This would allow  
> us to
> flag all incorrect cases.

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.

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.

Best,

g


--~--~---------~--~----~------------~-------~--~----~
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