CoffeeScript

CoffeeScript
ParadigmMulti-paradigm: prototype-based, functional, imperative, scripting
Designed byJeremy Ashkenas
DeveloperJeremy Ashkenas
First appearedDecember 13, 2009; 14 years ago (2009-12-13)
Stable release
2.7.0[1] Edit this on Wikidata / 24 April 2022; 2 years ago (24 April 2022)
Typing disciplinedynamic, implicit
OSCross-platform
LicenseMIT License
Filename extensions.coffee, .litcoffee[citation needed]
Websitecoffeescript.org
Influenced by
Haskell, JavaScript, Perl,[citation needed] Python,[2] Ruby, YAML[3]
Influenced
MoonScript, LiveScript, JavaScript

CoffeeScript is a programming language that compiles to JavaScript. It adds syntactic sugar inspired by Ruby, Python, and Haskell in an effort to enhance JavaScript's brevity and readability.[4] Specific additional features include list comprehension and destructuring assignment.

CoffeeScript support is included in Ruby on Rails version 3.1[5] and Play Framework.[6] In 2011, Brendan Eich referenced CoffeeScript as an influence on his thoughts about the future of JavaScript.[7][8]

  1. ^ "2.7.0". 24 April 2022. Retrieved 9 August 2022.
  2. ^ https://coffeescript.org/ "CoffeeScript borrows chained comparisons from Python"
  3. ^ Heller, Martin (October 18, 2011). "Turn up your nose at Dart and smell the CoffeeScript". InfoWorld. Retrieved 2020-07-15.
  4. ^ Alex MacCaw (January 2012). The Little Book on CoffeeScript. O'Reilly Media. ISBN 978-1-4493-2105-5.
  5. ^ Josh Peek (April 13, 2011). "Tweet by Rails Core Team Member".
  6. ^ "AssetsCoffeeScript - 2.5.x". www.playframework.com. Retrieved 2016-10-31.
  7. ^ Eich, Brendan. "Harmony of My Dreams"
  8. ^ Eich, Brendan. "My JSConf.US Presentation"