Content deleted Content added
WikiPeridot (talk | contribs) mNo edit summary |
Jerryobject (talk | contribs) m In prior edit and this edit: nonacronym MOS:ALLCAPS, nonlead-word nonproper noun MOS:CAPS > WP:LOWERCASE sentence case. WP:LINKs: update-standardize, add. Small WP:COPYEDIT WP:EoS WP:TERSE: cut needless word repeat. Temporary diff alignment placeholder carriage return cut. |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3:
| name = CoffeeScript
| logo = CoffeeScript-logo.svg
|
| family = [[ECMAScript]]
| released = {{start date and age|2009|12|13}}▼
| designer = [[Jeremy Ashkenas]]
| developer =
|
| latest release date = {{start date and age|{{Wikidata|qualifier| Q1106819 |P348|P577}}}}
| typing = [[Dynamic typing|dynamic]], [[Latent typing|implicit]]
| influenced_by = [[Haskell (programming language)|Haskell]], [[JavaScript]], [[Perl]],{{citation needed|date=January 2016}} [[Python (programming language)|Python]],<ref>https://coffeescript.org/ "CoffeeScript borrows chained comparisons from Python"</ref> [[Ruby (programming language)|Ruby]], [[YAML]]<ref name="smell">{{cite news |last1=Heller |first1=Martin |date=2011-10-18 |df=mdy |url=https://www.infoworld.com/article/2078452/turn-up-your-nose-at-dart-and-smell-the-coffeescript.html |title=Turn up your nose at Dart and smell the CoffeeScript |work=[[InfoWorld]] |access-date=2020-07-15}}</ref>▼
| scope = [[Scope (computer science)|lexical]]
| programming language = CoffeeScript
| platform = [[x86-64]]
| operating system = [[Cross-platform software|Cross-platform]]
| license = [[MIT License|MIT]]▼
|
▲|
| influenced = [[MoonScript]], [[LiveScript (programming language)|LiveScript]], JavaScript
▲| license = [[MIT License]]
▲| file_ext = <code>.coffee</code>, <code>.litcoffee</code>{{citation needed|date=September 2020}}
}}
'''CoffeeScript''' is a [[programming language]] that compiles to [[JavaScript]]. It adds [[syntactic sugar]] inspired by [[Ruby (programming language)|Ruby]], [[Python (programming language)|Python]], and [[
CoffeeScript support is included in [[Ruby on Rails]] version 3.1<ref>{{cite web |
== History ==
On December 13, 2009, [[Jeremy Ashkenas]] made the first [[Git (software)|Git]] commit of CoffeeScript with the comment "initial commit of the mystery language".<ref>Github. [https://github.com/jashkenas/coffee-script/commit/8e9d637985d2dc9b44922076ad54ffef7fa8e9c2
On December 24, 2010, Ashkenas announced the release of stable 1.0.0 to [[Hacker News]], the site where the project was announced for the first time.<ref>Hacker News. [https://news.ycombinator.com/item?id=2037801 CoffeeScript 1.0.0 announcement] posted by Jeremy Ashkenas on Dec 24, 2010</ref><ref>Hacker News. [https://news.ycombinator.com/item?id=1014080 Original CoffeeScript announcement] posted by Jeremy Ashkenas on Dec 24, 2009</ref>
Line 95 ⟶ 99:
</syntaxhighlight>
In CoffeeScript, the <code>function</code> keyword is replaced by the <code>-></code> symbol, and indentation is used instead of curly braces, as in other [[off-side rule]] languages such as Python and Haskell.
<!-- Ruby is probably the most similar language that GeSHi supports -->
Line 177 ⟶ 181:
{{uncited section|date=April 2024}}
* Source maps allow users to debug their CoffeeScript code directly, supporting CoffeeScript tracebacks on run time errors.
* CoffeeScript supports a form of [[
== Extensions ==
Line 185 ⟶ 189:
On September 13, 2012, [[Dropbox (service)|Dropbox]] announced that their browser-side code base had been rewritten from [[JavaScript]] to CoffeeScript,<ref>{{cite web|url=https://dropbox.tech/application/dropbox-dives-into-coffeescript| title=Dropbox dives into CoffeeScript| date=13 September 2012|last1= Wheeler| first1=Dan| last2= Mahkovec|first2= Ziga |last3= Varenhorst |first3=Chris|access-date=11 May 2013}}</ref> however it was migrated to [[TypeScript]] in 2017.<ref>{{cite web |last1=Goldstein |first1=David |title=The Great CoffeeScript to Typescript Migration of 2017 |url=https://dropbox.tech/frontend/the-great-coffeescript-to-typescript-migration-of-2017 |website=Dropbox.Tech |access-date=30 June 2020 |date=13 May 2020}}</ref>
[[GitHub]]'s internal style guide once said "write new JS in CoffeeScript", though it no longer does,<ref>{{cite web|url=https://github.com/styleguide/javascript|title=JavaScript · Styleguide · GitHub|publisher=Github.com|access-date=2015-11-30|archive-url=https://web.archive.org/web/20130815075924/https://github.com/styleguide/javascript|archive-date=2013-08-15|url-status=dead}}</ref> and
[[Pixel Game Maker MV]] makes uses of CoffeeScript as part of its game development environment.<ref name="CCG">{{cite web |last1=Cullen |first1=Daniel |title=
== See also ==
Line 198 ⟶ 202:
* [[Dart (programming language)]]
* [[Kotlin (programming language)]]
* [[LiveScript (programming language)
* [[Opa (programming language)]]
* [[Elm (programming language)]]
Line 205 ⟶ 209:
== References ==
{{Reflist
== Further reading ==
* {{Cite book |last1=Lee |first1=Patrick |date=May 14, 2014 |title=CoffeeScript in Action |edition=
* {{Cite
* {{Cite book |last1=Bates |first1=Mark |date=May 31, 2012 |title=Programming in CoffeeScript |edition=
* {{Cite book |last1=
== External links ==
* {{Official website}}
{{Programming languages}}▼
▲{{JavaScript|state=collapsed}}
{{NodeJs}}
▲{{Programming languages}}
{{Authority control}}
Line 231 ⟶ 234:
[[Category:2009 software]]
[[Category:Free software projects]]
<!-- Hidden categories below -->
[[Category:Articles with example JavaScript code]]
|