cangjie-basic-data-type

Explains fundamental data types and operators in the Cangjie programming language.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-basic-data-type
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-basic-data-type
Source: https://github.com/SunriseSummer/CangjieDocValidator/tree/main/.github/skills/basic_data_type
Command: npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-basic-data-type

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to understanding and utilizing the fundamental data types in the Cangjie programming language, ensuring correct syntax and usage.

Core Features & Use Cases

  • Data Type Reference: Detailed explanations of integers, floats, booleans, runes, strings, Unit, Nothing, tuples, arrays, and ranges.
  • Operator Guide: Covers arithmetic, logical, bitwise, and other operators with their precedence.
  • Type Conversion: Explains how to convert between different data types using constructor syntax and parsing methods.
  • Use Case: A new Cangjie developer needs to understand how to declare variables, perform calculations, and handle different kinds of data. This Skill serves as their primary reference.

Quick Start

Explain the integer types available in Cangjie.

Frequently Asked Questions about cangjie-basic-data-type

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

FAQPage Schema
What data types does Cangjie programming language support?

Cangjie supports fundamental data types including integers, floats, booleans, runes, strings, Unit, Nothing, tuples, arrays, and ranges for variable declaration and data handling.

How do I convert between data types in Cangjie?

You can convert between Cangjie data types using constructor syntax and parsing methods to safely transform values across integers, floats, strings, and other supported formats.

What operators are available in Cangjie and how does precedence work?

Cangjie provides arithmetic, logical, and bitwise operators with defined precedence rules to perform calculations and manipulate data values across its core data types.

How do I declare and use tuples and arrays in Cangjie?

Cangjie allows you to declare tuples and arrays as fundamental data types, enabling structured data grouping and sequential collection handling within your program logic.

When should I use Unit and Nothing types in Cangjie?

Use Cangjie's Unit type to represent the absence of a meaningful value like void, and Nothing for functions that never return, ensuring precise semantics in your syntax.