Where are the types documented?
The programming manual has a section on strong types, but it doesn't actually enumerate the primitive types there. Where can I find a full enumeration of the available primitives?
3 Replies
Those are in the stdlib under
builtin
, like Int
and SIMD
is documented in there. Or the index page lists them all out with descriptions https://docs.modular.com/mojo/lib.htmlModular Docs - Mojo🔥 modules
A list of all modules in the current standard library.
I see
int
, but I don't see things like Int8
, Float32
, etc. Where can I find those? It looks like those are aliases to SIMD, but are there aliases for every DType
?Other than Int, Complex, and float_literal, it seems like all the numeric types really are in SIMD. SIMD is kind of pervasive in mojo. Definitely not an authoritative answer here though 🙂