Skip to content

Instantly share code, notes, and snippets.

View carlosbrando's full-sized avatar

Carlos Brando carlosbrando

View GitHub Profile
int *p[];

CoffeeScript Family (& Friends)

Family (share genes with CoffeeScript)
  • Coco A CoffeeScript dialect that aims to be more radical and practical, also acts as a test bed for features that get imported in CoffeeScript.
    • LiveScript is a fork of Coco that is much more compatible with CoffeeScript, more functional, and with more features.
  • IcedCoffeeScript A CoffeeScript dialect that adds support for await and defer keywords which simplify async control flow.
>> var a = ["dog", "cat", "hen"];
>> a[100] = "fox";
>> a.length
=> 101
>> 1 === true
=> false
>> null == false
=> false
>> 1 == true
=> true
>>> parseInt("010")
=> 8
>>> parseInt("010", 10)
=> 10
>> "3" + 4 + 5
=> "345"
>> 3 + 4 + "5"
=> "75"
>> 0.1 + 0.2
=> 0.30000000000000004
mov eax, 1
mov ebx, 2
call print
prn eax
jmp exit
print:
add eax, ebx
ret