program | ... as first-class citizen | ... sama taraf | fungsi sama taraf |
fungsi | anonymous function | fungsi anonim | fn () {} () |
variabel | assignment | penempatan | a = 42 |
program | binary operator | operator dwiritas | + |
program | block | blok | {} |
program | callable | aripicu | metode, fungsi statis |
kelas | class | kelas | kelas A {} |
fungsi | closure | fungsi lapis | f(fn () {}) |
variabel | compound assignment | penempatan berlapis | a += 42 |
program | compound operator | operator berlapis | += |
looping | continue | putus | putus |
variabel | default | pranilai | ada a = 42 |
variabel | destructure | keduk | a, b = ..[1, 2] |
data | dictionary | peta | {} |
kata | escape characters | karakter lepas | \" , \n |
program | exception handling | penanganan masalah | coba -tahan -lalu |
program | expression | ekspresi | 42 |
logika | false | salah | false |
logika | falsey | sesalah | nil |
data | hash | peta | {} |
data | immutable | kekal | Deret |
program | identifier | pengenal | var , Objek |
kelas | inheritance | turunan | kelas A -> B {} |
kelas | instance | instansi | Objek.baru |
looping | iteration | iterasi | dari (...) |
kelas | method | metode | fn abc() {} |
variabel | modifier | sifat | sta , fana , tetap |
kelas | monkey patching | pengayaan | kelas Integer {} |
kelas | namespace | alam nama | A::B |
program | nested | bersarang | jika benar { jika benar { } } |
program | newline | pembaris | ↵ Enter |
logika | null | nil | nil |
fungsi | overload | peragaman | fn a(a) {}; fn a(a, b) {} |
fungsi | override | penimpaan | fn keKata() {} |
fungsi | polymorphism | pusparagam | fn a(a) {}; fn a(a, b) {} |
fungsi | return | utus | utus 42 |
variabel | shadowing | membayangi | ada a; fn (a) { a + 1 }(12) |
variabel | spread (operator) | (operasi) keduk | a, b = ..[1, 2] |
program | statement | pernyataan | kelas A {} |
fungsi | super | punca | fn a() { punca } |
kelas | subclass | kelas turunan | kelas Integer -> Angka {} |
kelas | superclass | kelas punca | kelas Integer -> Angka {} |
program | standard library | pustaka bawaan | Integer |
masalah | throw | lempar | lempar masalah |
fungsi | toString | keKata | fn keKata() {} |
logika | true | benar | benar |
logika | truthy | sebenar | 1 |
program | unary operator | operator ikaritas | ! |
variabel | variable | variabel | ada var |