Chapter 7. Style and semantics

This chapter covers

  • Rest and spread parameters
  • Destructuring assignment
  • Dealing with types
  • Effective comprehensions
  • Fluent interfaces
  • Nuances of significant whitespace

In chapter 2 you took a highway drive through the CoffeeScript syntactic landscape. CoffeeScript is a small language, so the drive didn’t take you very long. That said, chapter 2 was deliberately fast-paced, and at the speed you were going, some details were necessarily postponed for later. Well, later has arrived.

To understand the full breadth of CoffeeScript programs you’ll find in the wild, you need to appreciate some subtler syntactic and semantic aspects of the language that require a bit more care and attention to grasp. These aspects—covered ...

Get CoffeeScript in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.