http://github.com/isaacs/npm/blob/master/doc/coding-style.md
Likewise, I think it's silly to wear pants when it's warm. Everyone
knows it's more comfortable not to, and it's only a silly social
custom that entraps us in these tight pieces of cloth all day long.
In my own house, I'm often pantsless. But when visiting a friend's
house, I put on pants, because that's the custom, and that's how they
like it. (Unless they happen to also be ok with being pantsless, and
then it's an underpants party.)
The point is, I don't put semicolons in npm code, but I do put them in
node code. Because Ryan Dahl wears pants, and node is his house.
In your own house, you get to decide the styles and customs. But be
aware that it might have an effect on who feels comfortable at your
parties.
--i
> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
>
http://groups.google.com/group/nodejs/browse_thread/thread/35810f231cb289aa
> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
Reminds me of using regex to parse HTML...
Regards,
-Josh
____________________________________
Joshua Kehn | Josh...@gmail.com
http://joshuakehn.com
Cheers,
-Mihai
> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
>
--
Mihai Bazon,
http://mihai.bazon.net/blog
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
-s
Noooooooooooooooooooooooooooooooooooooooooooooooooooo
Just tossing that out there
-Karl Tiedt
Crockford is incorrect in it being an error actually. It is a parser.
It doesn't error unless it is extremely poorly built or the syntax is
completely unacceptable. The myth of parser rollback is a terrible lie
if you have ever taken compiler theory past recursive decent parsers.
That being said:
ASI in 2 lines (these steps **do not** occur this is what happens from
a logical standpoint, any decent parser using LL(*) parses would act
just as fast with these as with semicolons (dare i say? probably
faster)):
Does the next line start with a binary operator or this line end with
an operator (keywords that **require** an expression are treated as
operators)? Yes? Attach next line to this line
Is the current line a complete statement? Yes? ASI
On Oct 6, 5:12 am, Dominic Tarr <dominic.t...@gmail.com> wrote:
> crockford explains that ASI works by hitting a compile error, checking if
> there is a new line, inserting a ; and trying to compile again.
>
> sounds insane to me.
>
> some times it's easiest to just do something all the time, than to decide
> when to do it or not.
>
> on the other hand, I can't remember to include semi colons all the time, i'm
> too busy coding.
>
> these are the two choices, always use semicolons, or understand exactly how
> the compiler does ASI.
>
> people get emotional about things like this, because they can't be rational
> about it.
>
> Dominic
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
Thanks,
James
Last word? Hardly.
Jeremy, you of all people should be able to appreciate the artistic
satisfaction in coding.
Some programs are community centers, and you want to entice people to
come inside.
Some programs are factories, and you want to make sure the workers
don't hurt themselves.
Some programs are shops, and you want people to visit, but only a few
go in the back.
And then some programs are art, and while you might hope that some
people find them beautiful or perhaps even useful, and contributions
may be accepted and feedback always welcome, the real purpose is just
to hang it in your house and let it bring you joy.
There is not just one kind of thing in this world.
--i
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.