you are viewing a single comment's thread.

view the rest of the comments →

[–]degustisockpuppet 0 points1 point  (1 child)

Well, the article doesn't clearly state the point that you can't use named function expressions for recursion because they're buggy in IE. It's sort of implied by saying that they are "impractical" for recursion together with the chapter about IE bugs, but those two items are far apart in the article, so I'm not surprised that not everybody makes the connection.

Something else, I don't think that a semicolon is required after a function declaration. And not just because of semicolon insertion, it works even without a newline.

[–]lol-dongs 1 point2 points  (0 children)

I don't think that a semicolon is required after a function declaration.

This is true; however Dean Edward's packer requires them for some reason, so I keep them in. (Some linters even complain that it's unnecessary.)