mesh-types

Detail Mesh programming language types including primitives, structs, ADTs, generics, and collections.

2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/snowdamiz/mesh-lang --skill mesh-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mesh-types
Source: https://github.com/snowdamiz/mesh-lang/tree/main/tools/skill/mesh/skills/types
Command: npx skills add https://github.com/snowdamiz/mesh-lang --skill mesh-types

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive overview of Mesh's robust type system, enabling developers to write safer, more maintainable code by understanding its primitives, complex data structures, and type inference capabilities.

Core Features & Use Cases

  • Primitive Types: Covers Int, Float, Bool, String, and Unit.
  • Data Structures: Explains structs (product types) and ADTs (sum types) with examples.
  • Generics & Option/Result: Details generic types, Option<T> for optional values, and Result<T, E> for error handling, including the ? operator.
  • Collections: Briefly introduces List, Map, Set, Queue, and Range.
  • Type Inference: Highlights Mesh's ability to infer types, reducing boilerplate.
  • Use Case: A developer new to Mesh can use this Skill to quickly grasp how to define and use data structures, handle potential nulls or errors, and leverage the type system for robust application development.

Quick Start

Explain the Mesh primitive type String.

Frequently Asked Questions about mesh-types

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What primitive and complex types does the Mesh programming language support?

The Mesh programming language supports primitive types like Int, Float, Bool, and String, alongside complex types including structs, ADTs, generics, Option<T>, and Result<T, E> for robust data modeling.

How do I handle null values and errors using Mesh types?

Handle nulls and errors in Mesh using the Option<T> type for optional values and the Result<T, E> type for error handling, which can be streamlined using the ? operator to propagate failures safely.

How does type inference work in Mesh?

Mesh type inference automatically deduces variable types during compilation, reducing boilerplate code while maintaining the safety and expressiveness of a statically typed environment.

What collection types are available in the Mesh type system?

The Mesh type system includes collection types such as List, Map, Set, Queue, and Range to group multiple values and manage structured data efficiently within your applications.

How do I define product and sum types in Mesh?

Define product types in Mesh using structs to group named fields, and define sum types using ADTs to represent data that can be one of several distinct variants, enabling expressive domain modeling.

Does Mesh support generic programming?

Yes, Mesh supports generic types, allowing you to write flexible, reusable functions and data structures that operate on any data type while preserving compile-time type safety.