Emoji Quick Reference
This is a list of the emoji that the Emojicode compiler treats specially as “keywords.” Any emoji not listed here can be used freely as the name of a type, method, or variable (though newer emoji may not work).
Types such as 🔢 🔡 🍨 are not keywords; they are types defined in the standard library s. They are collected at the end.
Program structure
| Emoji | Meaning | Chapter |
|---|---|---|
🏁 |
Start of the program (entry point) | Hello World |
🍇 🍉 |
Start and end of a block | Hello World |
❗️ |
End of a method call | Hello World |
❓ |
End of a query method call (such as 📏 list❓) |
Lists and Dictionaries |
🤜 🤛 |
Parentheses (compute first) | Values and Variables |
💭 |
Single-line comment | Hello World |
💭🔜 🔚💭 |
Multi-line comment | Hello World |
📗 |
Documentation comment | Packages and Documentation Comments |
📘 |
Package documentation comment | Packages and Documentation Comments |
Values and variables
| Emoji | Meaning | Chapter |
|---|---|---|
➡️ |
Name a value, assign, return type | Values and Variables |
🖍 |
Mutable (variables and methods) | Values and Variables |
🆕 |
Create something new (variable, instance, initializer) | Values and Variables |
⬅️ |
Compound assignment (such as ⬅️➕), initial value of an instance variable |
Values and Variables |
👍 👎 |
True and false | Values and Variables |
🤷♀️ |
No value | Optionals |
🔤 |
String | Strings |
🧲 |
Interpolate a value into a string | Strings |
❌ |
Escape inside a string (such as ❌n) |
Strings |
🍿 🍆 |
List and dictionary literals | Lists and Dictionaries |
🍺 |
Unwrap an optional or an error (stops if there is nothing) | Optionals |
Operators
| Emoji | Meaning | Chapter |
|---|---|---|
➕ ➖ ✖️ ➗ |
Addition, subtraction, multiplication, division | Values and Variables |
🚮 |
Remainder | Values and Variables |
🙌 |
Equal | Conditionals |
◀️ ▶️ ◀️🙌 ▶️🙌 |
Less than, greater than, less than or equal, greater than or equal | Conditionals |
🤝 👐 |
And, or | Conditionals |
❎ |
Not (Boolean), bitwise NOT (integer) | Conditionals |
😜 |
Same instance? | Type Values and Casting |
⭕ 💢 ❌ |
Bitwise AND, OR, XOR | Bitwise Operations and Numbers |
👈 👉 |
Left shift, right shift | Bitwise Operations and Numbers |
🔋 |
Negate (flip the sign) | Bitwise Operations and Numbers |
💯 |
Convert an integer to a real number | Values and Variables |
Control flow
| Emoji | Meaning | Chapter |
|---|---|---|
↪️ |
If (if) | Conditionals |
🙅↪️ |
Otherwise if (else if) | Conditionals |
🙅 |
Otherwise (else) | Conditionals |
🔂 |
Go through a range or list in order (for) | Loops |
🔁 |
While a condition holds (while) | Loops |
↩️ |
Return a value (return) | Classes |
Defining types
| Emoji | Meaning | Chapter |
|---|---|---|
🐇 |
Class, type method (🐇❗️), using a type as a value |
Classes |
🕊 |
Value type | Value Types and Enumerations |
🔘 |
Enumeration | Value Types and Enumerations |
🐊 |
Protocol, conforming to a protocol | Protocols |
🐚 |
Generic type arguments | Generics |
🍼 |
Store an argument directly in an instance variable | Classes |
👇 |
This instance (this) | Classes |
⤴️ |
Call a superclass method or initializer | Inheritance |
✒️ |
Override a superclass method | Inheritance |
🔑 |
Initializer that every subclass must also provide | More on Classes |
🔏 |
Cannot be overridden in a subclass | More on Classes |
🔓 🔐 🔒 |
Visibility (public, up to subclasses, this class only) | More on Classes |
♻️ |
Code run when deinitializing (destructor) | More on Classes |
Closures
| Emoji | Meaning | Chapter |
|---|---|---|
⁉️ |
Call a closure | Closures |
🎍🥡 |
Closure that is taken outside (escaping) | Closures |
Error handling
| Emoji | Meaning | Chapter |
|---|---|---|
🚧 |
May throw an error (🚧 ErrorType) |
Error Handling |
🚨 |
Throw an error | Error Handling |
🆗 |
Catch an error (used together with 🙅) |
Error Handling |
🔺 |
Rethrow the error to the caller as is | Error Handling |
Writing types
| Emoji | Meaning | Chapter |
|---|---|---|
🍬 |
Optional (🍬🔢) |
Optionals |
⚪️ |
Type that can hold any value | Type Values and Casting |
🔵 |
Type that can hold an instance of any class | Type Values and Casting |
🍱 |
Type combining several protocols (🍱P Q🍱) |
Type Values and Casting |
🔲 |
Cast | Type Values and Casting |
📣 |
Specify the type of a literal | Type Values and Casting |
🔶 |
Type in a namespace (🔶NamespaceType) |
Packages and Documentation Comments |
⚫️ |
Let the type be inferred (no situation where it works was found in our tests) | Type Values and Casting |
⬛️ |
Create an instance from a variable holding a type (🆕⬛️ variable❗️) |
Type Values and Casting |
◼️ |
Returns no value (written where the return type goes) | Miscellaneous Syntax |
✴️ |
Return a reference to the contents of a value type | Memory and References |
⚖️ |
Size of a type (in bytes) | Miscellaneous Syntax |
🔸 |
Join two emoji into one name (such as 🚧🔸↕️) |
Packages
| Emoji | Meaning | Chapter |
|---|---|---|
📦 |
Import a package | Packages and Documentation Comments |
🏠 |
Put the imported types into your own namespace | Packages and Documentation Comments |
🌍 |
Export a type outside the package | Packages and Documentation Comments |
📜 |
Include another file (not available in this IDE) | Packages and Documentation Comments |
📻 |
Connect to a function written in C++ or similar (not available in this IDE) | Packages and Documentation Comments |
🔗 |
Specify a library to link (not available in this IDE) |
Advanced
| Emoji | Meaning | Chapter |
|---|---|---|
🏮 |
Whether you hold the only reference to that instance | Memory and References |
☣️ |
Block for writing unsafe code (unsafe) | Miscellaneous Syntax |
🎍 |
Attribute attached to a declaration (🎍🥡 🎍🛢) |
Closures |
🥯 |
Inline | Miscellaneous Syntax |
🛢 |
Skip generating per-type code for generics (🎍🛢) |
Miscellaneous Syntax |
⚠️ |
Deprecated (warns when used) | Miscellaneous Syntax |
🔟 |
Removed symbol literal (using it gives the error 🔣 has been removed.) |
Miscellaneous Syntax |
Main types in the standard library
These are not keywords, but they are commonly used types.
| Emoji | Type | Chapter |
|---|---|---|
🔢 |
Integer | Values and Variables |
💯 |
Real number | Values and Variables |
👌 |
Boolean | Values and Variables |
🔡 |
String | Strings |
💧 |
Byte (an integer from 0 to 255) | |
🍨 |
List | Lists and Dictionaries |
🍯 |
Dictionary | Lists and Dictionaries |
⏩ |
Range | Loops |
📇 |
Byte sequence (data) | |
📶 |
Weak reference | Memory and References |
🍡 🔂 |
Iterator, and the protocol for types you can loop over | Iterating Your Own Types with 🔂 |
🚧 |
Error with a message | Error Handling |
🧵 |
Thread (in this IDE, it just runs immediately) |