# Miscellaneous Syntax

This page: https://emojicode-ide.com/en/docs/advanced/misc/

This is syntax for advanced users that you won't use very often.

## Returning nothing (◼️)

Writing `◼️` where the return type goes states explicitly that nothing is returned. It is mostly used in closure types.

```emojicode
🏁 🍇
  🍇 ➡️ ◼️
    😀 🔤Returns nothing🔤❗️
  🍉 ➡️ f
  ⁉️ f❗️
🍉
```

Output:

```text
Returns nothing
```

## Size of a type (⚖️)

`⚖️Type` returns how many bytes one value of that type takes.

```emojicode
🏁 🍇
  😀 🔡 ⚖️🔢❗️❗️
  😀 🔡 ⚖️💯❗️❗️
  😀 🔡 ⚖️👌❗️❗️
🍉
```

Output:

```text
8
8
1
```

## Deprecation (⚠️)

If you put `⚠️` on a method, a warning is shown wherever that method is used. Its behavior does not change.

```emojicode
🐇 🧓 🍇
  ⚠️🐇❗️ 📠 🍇
    😀 🔤Old method🔤❗️
  🍉
🍉

🏁 🍇
  📠🐇🧓❗️
🍉
```

Output:

```text
Old method
```

When you compile it, you get the warning `⚠️ warning: 📠 is deprecated.`

## Inlining (🥯)

If you put `🥯` on a method, you ask the compiler to expand its body where it is called. Its behavior does not change.

```emojicode
🐇 ➰ 🍇
  🥯🐇❗️ ✌️ n 🔢 ➡️ 🔢 🍇
    ↩️ n ✖️ 2
  🍉
🍉

🏁 🍇
  😀 🔡 ✌️🐇➰ 21❗️❗️❗️
🍉
```

Output:

```text
42
```

## Unsafe code (☣️)

Inside `☣️ 🍇 … 🍉` you can write unsafe code, such as code that works with memory directly. It is used inside the standard library, but you won't use it in ordinary programs.

```emojicode
🏁 🍇
  ☣️ 🍇
    😀 🔤Inside unsafe🔤❗️
  🍉
🍉
```

Output:

```text
Inside unsafe
```

## Skipping per-type generic information (🎍🛢)

If you put `🎍🛢` on a generic value type, no runtime information is created for each type argument. It is used inside the standard library's lists and dictionaries.

```emojicode
🎍🛢 🕊 📦🐚T ⚪️🍆 🍇
  🖍🆕 v T
  🆕 🍼 v T 🍇🍉
  ❗️ 📤 ➡️ T 🍇
    ↩️ v
  🍉
🍉

🏁 🍇
  😀 📤 🆕📦🐚🔡🍆 🔤ok🔤❗️❗️❗️
🍉
```

Output:

```text
ok
```

## Removed syntax (🔟)

“Symbol literals” starting with `🔟` existed in older versions of Emojicode and can no longer be used. Writing one causes a compile error. When you want to work with a single character, use a string (`🔤`).

Example of a compile error:

```emojicode
🏁 🍇
  🔟🍎 ➡️ s
🍉
```

Error:

```text
🔣 has been removed.
```
