Type Hinting

Vortex gives you the ability to type hint variables and functions.

Much like Python, this is not strictly enforced by the compiler. However, this does provide an easy entry point into overlaying a type system over Vortex, since the hints are compiled away.

const addNums = (a: Number, b: Number): Number => a + b

const numVar: Number = 100
const numOrBool: Number | Boolean = true

Last updated