Omitting optional semicolons means fewer characters to type and fewer characters to clutter your code. Breaking separate statements onto their own lines increases your code's readability.
省略可选的分号意味着更少的符号输入和更少的符号混乱。把各个语句隔离到它们自己单独的行上面可以提高你的代码的可读性。
Well, if I cannot keep Heathcliff for my friend--if Edgar will be mean and jealous, I'll try to break their hearts by breaking my own.
好吧,如果我不能保留希刺克厉夫作我的朋友——如果埃德加卑鄙而嫉妒,我就要断肠心碎,好让他们也断肠心碎。
I started Riddley Walker in straight English but my characters wouldn't wear it, they insisted on breaking up long words and imposing their own grammar, syntax and pronunciation on their vernacular.
开始写《漫步者瑞德里》时,我采用简练的英语;但人物不买账,他们坚持时不时蹦出长长的词汇,用他们自己方言的语法、句法和发音。
It's a way of breaking the code up into modules. Modules that makes sense on their own. Modules that we can reuse in multiple places. Modules that, if you like, Isolate components of the process.
能将代码分解为模块,模块能够独自运作,我们能在很多地方再利用这些模块,如果你喜欢的话,模块可以被看作是过程独立的组成部分。
应用推荐