# Emoji Quick Reference

This page: https://emojicode-ide.com/en/docs/reference/emoji/

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](https://emojicode-ide.com/en/docs/about/known-issues.md)).

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](https://emojicode-ide.com/en/docs/intro/hello.md) |
| `🍇` `🍉` | Start and end of a block | [Hello World](https://emojicode-ide.com/en/docs/intro/hello.md) |
| `❗️` | End of a method call | [Hello World](https://emojicode-ide.com/en/docs/intro/hello.md) |
| `❓` | End of a query method call (such as `📏 list❓`) | [Lists and Dictionaries](https://emojicode-ide.com/en/docs/basics/collections.md) |
| `🤜` `🤛` | Parentheses (compute first) | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `💭` | Single-line comment | [Hello World](https://emojicode-ide.com/en/docs/intro/hello.md) |
| `💭🔜` `🔚💭` | Multi-line comment | [Hello World](https://emojicode-ide.com/en/docs/intro/hello.md) |
| `📗` | Documentation comment | [Packages and Documentation Comments](https://emojicode-ide.com/en/docs/advanced/packages.md) |
| `📘` | Package documentation comment | [Packages and Documentation Comments](https://emojicode-ide.com/en/docs/advanced/packages.md) |

## Values and variables

| Emoji | Meaning | Chapter |
|---|---|---|
| `➡️` | Name a value, assign, return type | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `🖍` | Mutable (variables and methods) | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `🆕` | Create something new (variable, instance, initializer) | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `⬅️` | Compound assignment (such as `⬅️➕`), initial value of an instance variable | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `👍` `👎` | True and false | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `🤷‍♀️` | No value | [Optionals](https://emojicode-ide.com/en/docs/basics/optionals.md) |
| `🔤` | String | [Strings](https://emojicode-ide.com/en/docs/basics/strings.md) |
| `🧲` | Interpolate a value into a string | [Strings](https://emojicode-ide.com/en/docs/basics/strings.md) |
| `❌` | Escape inside a string (such as `❌n`) | [Strings](https://emojicode-ide.com/en/docs/basics/strings.md) |
| `🍿` `🍆` | List and dictionary literals | [Lists and Dictionaries](https://emojicode-ide.com/en/docs/basics/collections.md) |
| `🍺` | Unwrap an optional or an error (stops if there is nothing) | [Optionals](https://emojicode-ide.com/en/docs/basics/optionals.md) |

## Operators

| Emoji | Meaning | Chapter |
|---|---|---|
| `➕` `➖` `✖️` `➗` | Addition, subtraction, multiplication, division | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `🚮` | Remainder | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `🙌` | Equal | [Conditionals](https://emojicode-ide.com/en/docs/basics/control.md) |
| `◀️` `▶️` `◀️🙌` `▶️🙌` | Less than, greater than, less than or equal, greater than or equal | [Conditionals](https://emojicode-ide.com/en/docs/basics/control.md) |
| `🤝` `👐` | And, or | [Conditionals](https://emojicode-ide.com/en/docs/basics/control.md) |
| `❎` | Not (Boolean), bitwise NOT (integer) | [Conditionals](https://emojicode-ide.com/en/docs/basics/control.md) |
| `😜` | Same instance? | [Type Values and Casting](https://emojicode-ide.com/en/docs/types/casting.md) |
| `⭕` `💢` `❌` | Bitwise AND, OR, XOR | [Bitwise Operations and Numbers](https://emojicode-ide.com/en/docs/advanced/numbers.md) |
| `👈` `👉` | Left shift, right shift | [Bitwise Operations and Numbers](https://emojicode-ide.com/en/docs/advanced/numbers.md) |
| `🔋` | Negate (flip the sign) | [Bitwise Operations and Numbers](https://emojicode-ide.com/en/docs/advanced/numbers.md) |
| `💯` | Convert an integer to a real number | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |

## Control flow

| Emoji | Meaning | Chapter |
|---|---|---|
| `↪️` | If (if) | [Conditionals](https://emojicode-ide.com/en/docs/basics/control.md) |
| `🙅↪️` | Otherwise if (else if) | [Conditionals](https://emojicode-ide.com/en/docs/basics/control.md) |
| `🙅` | Otherwise (else) | [Conditionals](https://emojicode-ide.com/en/docs/basics/control.md) |
| `🔂` | Go through a range or list in order (for) | [Loops](https://emojicode-ide.com/en/docs/basics/loops.md) |
| `🔁` | While a condition holds (while) | [Loops](https://emojicode-ide.com/en/docs/basics/loops.md) |
| `↩️` | Return a value (return) | [Classes](https://emojicode-ide.com/en/docs/types/classes.md) |

## Defining types

| Emoji | Meaning | Chapter |
|---|---|---|
| `🐇` | Class, type method (`🐇❗️`), using a type as a value | [Classes](https://emojicode-ide.com/en/docs/types/classes.md) |
| `🕊` | Value type | [Value Types and Enumerations](https://emojicode-ide.com/en/docs/types/valuetypes.md) |
| `🔘` | Enumeration | [Value Types and Enumerations](https://emojicode-ide.com/en/docs/types/valuetypes.md) |
| `🐊` | Protocol, conforming to a protocol | [Protocols](https://emojicode-ide.com/en/docs/types/protocols.md) |
| `🐚` | Generic type arguments | [Generics](https://emojicode-ide.com/en/docs/types/generics.md) |
| `🍼` | Store an argument directly in an instance variable | [Classes](https://emojicode-ide.com/en/docs/types/classes.md) |
| `👇` | This instance (this) | [Classes](https://emojicode-ide.com/en/docs/types/classes.md) |
| `⤴️` | Call a superclass method or initializer | [Inheritance](https://emojicode-ide.com/en/docs/types/inheritance.md) |
| `✒️` | Override a superclass method | [Inheritance](https://emojicode-ide.com/en/docs/types/inheritance.md) |
| `🔑` | Initializer that every subclass must also provide | [More on Classes](https://emojicode-ide.com/en/docs/advanced/classes.md) |
| `🔏` | Cannot be overridden in a subclass | [More on Classes](https://emojicode-ide.com/en/docs/advanced/classes.md) |
| `🔓` `🔐` `🔒` | Visibility (public, up to subclasses, this class only) | [More on Classes](https://emojicode-ide.com/en/docs/advanced/classes.md) |
| `♻️` | Code run when deinitializing (destructor) | [More on Classes](https://emojicode-ide.com/en/docs/advanced/classes.md) |

## Closures

| Emoji | Meaning | Chapter |
|---|---|---|
| `⁉️` | Call a closure | [Closures](https://emojicode-ide.com/en/docs/types/closures.md) |
| `🎍🥡` | Closure that is taken outside (escaping) | [Closures](https://emojicode-ide.com/en/docs/types/closures.md) |

## Error handling

| Emoji | Meaning | Chapter |
|---|---|---|
| `🚧` | May throw an error (`🚧 ErrorType`) | [Error Handling](https://emojicode-ide.com/en/docs/types/errors.md) |
| `🚨` | Throw an error | [Error Handling](https://emojicode-ide.com/en/docs/types/errors.md) |
| `🆗` | Catch an error (used together with `🙅`) | [Error Handling](https://emojicode-ide.com/en/docs/types/errors.md) |
| `🔺` | Rethrow the error to the caller as is | [Error Handling](https://emojicode-ide.com/en/docs/types/errors.md) |

## Writing types

| Emoji | Meaning | Chapter |
|---|---|---|
| `🍬` | Optional (`🍬🔢`) | [Optionals](https://emojicode-ide.com/en/docs/basics/optionals.md) |
| `⚪️` | Type that can hold any value | [Type Values and Casting](https://emojicode-ide.com/en/docs/types/casting.md) |
| `🔵` | Type that can hold an instance of any class | [Type Values and Casting](https://emojicode-ide.com/en/docs/types/casting.md) |
| `🍱` | Type combining several protocols (`🍱P Q🍱`) | [Type Values and Casting](https://emojicode-ide.com/en/docs/types/casting.md) |
| `🔲` | Cast | [Type Values and Casting](https://emojicode-ide.com/en/docs/types/casting.md) |
| `📣` | Specify the type of a literal | [Type Values and Casting](https://emojicode-ide.com/en/docs/types/casting.md) |
| `🔶` | Type in a namespace (`🔶NamespaceType`) | [Packages and Documentation Comments](https://emojicode-ide.com/en/docs/advanced/packages.md) |
| `⚫️` | Let the type be inferred (no situation where it works was found in our tests) | [Type Values and Casting](https://emojicode-ide.com/en/docs/types/casting.md) |
| `⬛️` | Create an instance from a variable holding a type (`🆕⬛️ variable❗️`) | [Type Values and Casting](https://emojicode-ide.com/en/docs/types/casting.md) |
| `◼️` | Returns no value (written where the return type goes) | [Miscellaneous Syntax](https://emojicode-ide.com/en/docs/advanced/misc.md) |
| `✴️` | Return a reference to the contents of a value type | [Memory and References](https://emojicode-ide.com/en/docs/advanced/memory.md) |
| `⚖️` | Size of a type (in bytes) | [Miscellaneous Syntax](https://emojicode-ide.com/en/docs/advanced/misc.md) |
| `🔸` | Join two emoji into one name (such as `🚧🔸↕️`) | |

## Packages

| Emoji | Meaning | Chapter |
|---|---|---|
| `📦` | Import a package | [Packages and Documentation Comments](https://emojicode-ide.com/en/docs/advanced/packages.md) |
| `🏠` | Put the imported types into your own namespace | [Packages and Documentation Comments](https://emojicode-ide.com/en/docs/advanced/packages.md) |
| `🌍` | Export a type outside the package | [Packages and Documentation Comments](https://emojicode-ide.com/en/docs/advanced/packages.md) |
| `📜` | Include another file (not available in this IDE) | [Packages and Documentation Comments](https://emojicode-ide.com/en/docs/advanced/packages.md) |
| `📻` | Connect to a function written in C++ or similar (not available in this IDE) | [Packages and Documentation Comments](https://emojicode-ide.com/en/docs/advanced/packages.md) |
| `🔗` | 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](https://emojicode-ide.com/en/docs/advanced/memory.md) |
| `☣️` | Block for writing unsafe code (unsafe) | [Miscellaneous Syntax](https://emojicode-ide.com/en/docs/advanced/misc.md) |
| `🎍` | Attribute attached to a declaration (`🎍🥡` `🎍🛢`) | [Closures](https://emojicode-ide.com/en/docs/types/closures.md) |
| `🥯` | Inline | [Miscellaneous Syntax](https://emojicode-ide.com/en/docs/advanced/misc.md) |
| `🛢` | Skip generating per-type code for generics (`🎍🛢`) | [Miscellaneous Syntax](https://emojicode-ide.com/en/docs/advanced/misc.md) |
| `⚠️` | Deprecated (warns when used) | [Miscellaneous Syntax](https://emojicode-ide.com/en/docs/advanced/misc.md) |
| `🔟` | Removed symbol literal (using it gives the error `🔣 has been removed.`) | [Miscellaneous Syntax](https://emojicode-ide.com/en/docs/advanced/misc.md) |

## Main types in the standard library

These are not keywords, but they are commonly used types.

| Emoji | Type | Chapter |
|---|---|---|
| `🔢` | Integer | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `💯` | Real number | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `👌` | Boolean | [Values and Variables](https://emojicode-ide.com/en/docs/basics/values.md) |
| `🔡` | String | [Strings](https://emojicode-ide.com/en/docs/basics/strings.md) |
| `💧` | Byte (an integer from 0 to 255) | |
| `🍨` | List | [Lists and Dictionaries](https://emojicode-ide.com/en/docs/basics/collections.md) |
| `🍯` | Dictionary | [Lists and Dictionaries](https://emojicode-ide.com/en/docs/basics/collections.md) |
| `⏩` | Range | [Loops](https://emojicode-ide.com/en/docs/basics/loops.md) |
| `📇` | Byte sequence (data) | |
| `📶` | Weak reference | [Memory and References](https://emojicode-ide.com/en/docs/advanced/memory.md) |
| `🍡` `🔂` | Iterator, and the protocol for types you can loop over | [Iterating Your Own Types with 🔂](https://emojicode-ide.com/en/docs/types/iteration.md) |
| `🚧` | Error with a message | [Error Handling](https://emojicode-ide.com/en/docs/types/errors.md) |
| `🧵` | Thread (in this IDE, it just runs immediately) | |
