DEV Community

Adebayo Abiodun Adeyemi
Adebayo Abiodun Adeyemi

Posted on

DATA TYPES IN MOTOKO

Motoko is a programming language for building decentralized applications on the Internet Computer.
Motoko’s Type System
We explored primitive & non-primitive types, including:
✅ Bool → true or false
✅ Int & Nat → Numbers (bounded & unbounded)
✅ Char → Unicode-supported characters
✅ Text → A collection of Char (aka strings)

_Bounded vs. Unbounded Types
_

Bounded types: Have a fixed size (e.g., Int8, Int32).

Unbounded types: Can grow dynamically (Int, Nat).

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay