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 <[email protected]> wrote:
> We were originally planning to go this direction. Unfortunately, we're also
> planning on getting rid of the need for "=", so you can use variables with
> ":". In this case, variables need a prefix so they're not ambiguous with
> normal property values.
>
> On Sat, Mar 6, 2010 at 3:38 PM, Gabriel Sobrinho <[email protected]
>
>
>
> > wrote:
> > I think variables should not contain a prefix (like in plain ruby). $ looks
> > like PHP and ! is too strange :)
>
> > I like this:
>
> > =border-radius(radius)
> >  border-radius = radius
> >  -moz-border-radius = radius
> >  -webkit-border-radius = radius
>
> > Looks more clean. What you think?
>
> > Em 06/03/2010, às 20:28, Nathan Weizenbaum escreveu:
>
> >  Hi folks,
>
> >> I wanted to take an informal poll on a Sass 3 design issue. We're planning
> >> on adding a new prefix character for variables, "$", because "!" doesn't
> >> really feel right to us and many people we've talked to. I'll expand more
> >> upon this in a blog posts soon, but for now I wanted to ask you the users
> >> what you would think about deprecating the "!" prefix entirely, printing a
> >> warning when it's used, and strongly encouraging people to switch to "$" --
> >> in the release after 3, we would likely remove "!" entirely. The 
> >> alternative
> >> would be allowing both "$" and "!" to be used for the foreseeable future.
>
> >> What do you think?
>
> >> - 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] <haml%[email protected]>.
> >> 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 [email protected].
> > To unsubscribe from this group, send email to
> > [email protected] <haml%[email protected]>.
> > 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 [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