cangjie-reflect-and-annotation

Community

Explore Cangjie's reflection and annotation.

AuthorSunriseSummer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers understand and utilize Cangjie language's advanced features for metaprogramming, including how to control integer overflow behavior and dynamically inspect and manipulate code elements at runtime.

Core Features & Use Cases

  • Integer Overflow Control: Manage arithmetic overflow with @OverflowThrowing, @OverflowWrapping, and @OverflowSaturating annotations.
  • Custom Annotations: Define and apply custom annotations to classes, members, and parameters using @Annotation.
  • Runtime Reflection: Inspect types, variables, properties, and functions using the TypeInfo class for dynamic code analysis and manipulation.
  • Use Case: Debugging complex arithmetic operations by precisely controlling overflow behavior, or building a plugin system that discovers and utilizes custom annotations at runtime.

Quick Start

Show me how to use the @OverflowThrowing annotation on a function that performs addition.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cangjie-reflect-and-annotation
Download link: https://github.com/SunriseSummer/CangjieDocValidator/archive/main.zip#cangjie-reflect-and-annotation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.