-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no one escapes the austrian inquisition
- Loading branch information
Showing
11 changed files
with
424 additions
and
684 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just... why?
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOOOOOOOOOOOO!!!!!
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zepto is experiencing a drastic diet! :)
@madrobby Could you please explain some of the reasoning for this?
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;+1 on this commit
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But, but, but... why? To decrease file size? That should be a job for the minifier!
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see http://mislav.uniqpath.com/2010/05/semicolons/ for why we're doing this. It's purely a stylistic issue, with less typing for us and the core team prefers this style.
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What Thomas said.
Also, I really really hate all the uglifiers and minifiers. They make source viewing and poking very difficult and I hope the trend of taking out semicolons encourages people to leave their code readable to humans.
I learned a ton while I was starting out by viewing the source and looking at how things were made. Won't you please think of the children?
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to the following flowchart when making decisions about semicolons.
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like it! :)$){...})(Zepto) by using !function($ ){...}(Zepto)?
Why not get rid of the semicolon in ;(function(
68cbe1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smolotov It's purely stylistic and we want simple rules, so it's easier to do the same before any statement that starts with
(
or[
. We leave more optimizations to UglifyJS.