cangjie-basic-programming-concepts

Explain fundamental Cangjie programming concepts including syntax, control flow, and functions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to the fundamental building blocks of the Cangjie programming language, enabling developers to understand and correctly use its syntax and structure.

Core Features & Use Cases

  • Syntax and Keywords: Details all reserved keywords and identifier rules.
  • Program Structure: Explains scope, variable declarations, and type systems (value vs. reference).
  • Expressions and Control Flow: Covers if statements, loops, and match expressions.
  • Function Definition: Outlines the basic syntax for creating functions.
  • Use Case: A new developer learning Cangjie can use this Skill to quickly grasp concepts like variable mutability (let vs. var), data types, and how to structure basic programs.

Quick Start

Explain the difference between let and var in Cangjie.

Frequently Asked Questions about cangjie-basic-programming-concepts

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

FAQPage Schema
What is the difference between let and var in Cangjie programming?

Cangjie control flow mechanisms include if statements, while loops, for-in iterations, and match expressions. Break and continue statements manage loop execution, providing structured branching for program logic.

How do I define functions in Cangjie?

Defining functions in Cangjie involves using basic syntax rules to structure callable code blocks. This Skill outlines the fundamental definitions required to create reusable functions within your program architecture.

Does Cangjie support both value and reference types?

Cangjie supports both value and reference types within its type system. Understanding scope rules and type distinctions is essential for correct variable declarations and managing data behavior across program structures.

What are the reserved keywords and identifier rules in Cangjie?

Cangjie syntax defines specific reserved keywords and identifier rules that dictate program structure. Learning these foundational rules prevents naming conflicts and ensures expressions are parsed correctly by the compiler.

When should I use match expressions instead of if statements in Cangjie?

Match expressions in Cangjie provide structured pattern matching for complex branching, whereas if statements handle simpler conditional logic. Both are core control flow components, but match offers concise multi-branch evaluation.