Type aliasing

Type aliasing is a feature in some programming languages that allows creating a reference to a type using another name. It does not create a new type hence does not increase type safety. It can be used to shorten a long name. Languages allowing type aliasing include: C++, C# Crystal, D, Dart, Elixir, Elm, F#, Go, Hack, Haskell, Julia, Kotlin, Nim, OCaml, Python, Rust, Scala, Swift and TypeScript.

C++
C++ features type aliasing using the  keyword.

C#
C# since version 12 features type aliasing using the  keyword.

Crystal
Crystal features type aliasing using the  keyword.

D
D features type aliasing using the  keyword.

Dart
Dart features type aliasing using the  keyword.

Elixir
Elixir features type aliasing using.

Elm
Elm features type aliasing using.

F#
F3 features type aliasing using the  keyword.

Go
Go features type aliasing using the  keyword.

Hack
Hack features type aliasing using the  keyword.

Haskell
Haskell features type aliasing using the  keyword.

Julia
Julia features type aliasing.

Kotlin
Kotlin features type aliasing using the  keyword.

Nim
Nim features type aliasing.

OCaml
OCaml features type aliasing.

Python
Python features type aliasing.

Type aliases may be marked with TypeAlias to make it explicit that the statement is a type alias declaration, not a normal variable assignment.

Rust
Rust features type aliasing using the  keyword.

Scala
Scala can create type aliases using opaque types.

Swift
Swift features type aliasing using the  keyword.

TypeScript
TypeScript features type aliasing using the  keyword.