I am all for this. $ is common in not only PHP stew but also
Javascript. ! is NOT!!

Thanks


On Mar 7, 12:43 am, Chris Eppstein <ch...@eppsteins.net> wrote:
> Let's assume for a second that it didn't create parsing ambiguities.
>
> Would you really prefer:
>
> div
>   border: width solid blue
>
> over:
>
> div
>   border: $width solid blue
>
> I think the latter is much more clear from a reader's perspective.
>
> And without the prefix we could also do horrible things like this:
>
> solid = dashed;
> blue = #f00;
> width = 1px;
> div
>   border: width solid blue
>
> which would emit:
>
> div{ border: 1px dashed red; }
>
> In a programming language, you're working with variables all the time. They
> are the most common thing you work with and so it makes sense that you'd
> optimize the syntax around them, but in sass you're building styles first
> and variables are secondary -- as such, I feel quite strongly they should be
> easily identifiable as special.
>
> Anyways, Nathan has already finished coding all this up and it's on the scss
> branch. Thanks to everyone for your input. The use of ! as a variable prefix
> will be deprecated in sass 3.
>
> chris
>
>
>
> On Sat, Mar 6, 2010 at 9:25 PM, Michael Narciso <narke...@gmail.com> wrote:
> >  I'd prefer no prefix but would be content with $.
>
> > Norman Clarke wrote:
>
> > I strongly agree that $ will be better than !. As far as deprecations go,
> > perhaps you could go with first a warning for one release cycle, and then
> > leave it as a non-default configuration option for another release cycle
> > before eliminating it entirely.
>
> > On Mar 6, 2010 9:13 PM, "Tobias Adam" <tow...@gmail.com> wrote:
>
> > I always thought that the "!" prefix tends to be a bit ambiguous
> > because of its common notion of a logical NOT.
> > I mean that reading
>
> >  =column-base(!last = false)
> >    +float-left
> >   �...@if !last
> >      +last
>
> > reads to a Java/Ruby/JavaScript/C/… programmer as "IF NOT LAST" which
> > is exactly the opposite of its intended meaning.
>
> > On the contraty, I think using a "$" prefix positively reminds
> > programmers of other languages’ syntax, even if it’s PHP ;-)
> > So I would prefer the method of deprecating the "!" notation and
> > moving towards the "$" syntax.
>
> > Greetings,
> > Tobi
>
> > On Mar 7, 12:43 am, Nathan Weizenbaum <nex...@gmail.com> wrote:
> > > We were originally planning to go...
> > > On Sat, Mar 6, 2010 at 3:38 PM, Gabriel Sobrinho <
> > gabriel.sobri...@gmail.com
>
> > > > wrote:
> > > > I think variables should not contain a prefix (like in plain ruby). $
> > looks
> > > >...
> > > >> haml+unsubscr...@googlegroups.com<haml%2bunsubscr...@googlegroups.com><
> > haml%2bunsubscr...@googlegroups.com<haml%252bunsubscr...@googlegroups.com>
> > >.
>
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/haml?hl=en.
>
> > > > --
> > >...
> > > > haml+unsubscr...@googlegroups.com<haml%2bunsubscr...@googlegroups.com><
> > haml%2bunsubscr...@googlegroups.com<haml%252bunsubscr...@googlegroups.com>
> > >.
>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/haml?hl=en.
>
> > --
> > You rec...
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Haml" group.
> > To post to this group, send email to h...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > haml+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/haml?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Haml" group.
> > To post to this group, send email to h...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>.
> > For more options, visit this group at
> >http://groups.google.com/group/haml?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to h...@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to