17 KiB
Claro v1.18.26 Current Status
This file is the beginner-safe status map for the current package. It separates what is ready to use from what is historical, experimental, or still planned.
How to read the status labels
- Stable foundation: good enough for normal examples and beginner learning.
- Foundation present: usable, but still missing important polish or coverage.
- Experimental/planned: do not rely on it in beginner lessons yet.
- Historical: kept for release history, not current instructions.
Feature matrix
Beginner scripting core
Status: Stable foundation
Ready now:
- variables with
SET - output with
SAY - input with
ASK - choices with
IF/ELSE/END - loops
- lists and maps
- files, JSON, text helpers, and tested path/collection library helpers
- friendly checking with
claro check
Good starting docs:
QUICK_START.mdFIRST_HOUR.mdCLI.mdSPEC.md
Functions
Status: Stable foundation
Ready now:
- simple modern form:
TEACH name arg...END - compatibility form:
TEACH name TAKES arg...LEARNED - calls with
DOor olderCALL ... WITH
Good starting docs:
SIMPLE_FUNCTIONS.mdREADME.md
Static type safety
Status: Foundation present
Ready now:
- typed variables such as
SET score NUMBER 10 TYPE OFandCHECK TYPECHECK TYPErejects unknown expected type names with a beginner-facing list of supported types- typed list/map checks through
claro typecheck, including a nestedLIST OF MAPinsertion example - simple function and object-method return checks with
TEACH name ... RETURNS TYPE, including learner-facing diagnostics for unknown declared return types, mismatched or not-yet-inferableRETURNexpressions (including method-specific diagnostics naming the class and method, with modern and compatibility method coverage), emptyRETURNstatements, declarations that contain noRETURN, and declarations whose only return is inside an incomplete conditional;RETURNSis case-insensitive like other Claro keywords and has positive coverage in both modern and compatibility function forms, including lowercase compatibility declarations and lowercase compatibility method declarations, plus a lowercase compatibility-method mismatch diagnostic;CHECK TYPEparameter metadata also informs arithmetic return-expression checking, including method return expressions; positive function-return coverage includes numeric multiplication; compatibility methods now have dedicated positive numeric addition, subtraction, division, and multiplication return fixtures plus compatibility addition, subtraction, division, and multiplication diagnostic fixtures; NUMBER return diagnostics name a known TEXT operand and arithmetic operation instead of hiding the cause behind a generic mismatch, with focused addition, subtraction, multiplication, and division coverage for functions and methods; typed methods can also return class-declared fields by simple name, with positive and mismatch coverage in both modern and compatibility method syntax - a narrow function/method argument check:
CHECK TYPE parameter IS TYPEinside a function or simple object method letsclaro typecheckaccept correct checked calls, catch mismatchedDO,CALL ... WITH,DO object.method ..., and compatibilityCALL object.method WITH ...arguments, including checked methods that appear after another method in the same class, report missing checked function and method arguments, report missing unchecked arguments for simple functions and simple object methods in both modernDOand compatibilityCALL ... WITHforms, treat empty compatibility calls such asCALL greet WITHandCALL player.rename WITHas missing-argument mistakes, catch extra arguments to simple functions and checked methods even when the checked method appears after another method in the same class, catch modernDOand compatibilityCALL ... WITHcalls to undeclared simple functions, explain whenDO object.method ...or compatibilityCALL object.method WITH ...happens before the object is created withNEWeven if the method name is also wrong, and catch modern plus compatibility calls to undeclared object methods with a class-specificTEACHhint - a narrow object-field assignment/check-type check for simple
NEW Class objectplus directSET object.field valueandCHECK TYPE object.field IS TYPEcases when the class declaresHAS field TYPE; validation now covers correct NUMBER, TEXT, and YESNO direct assignments, explicitly typed field assignments, explicitly typed method-body assignments to undeclared fields with aHAS field TYPErepair hint in modern and compatibility method syntax, dedicated positive NUMBER/TEXT/YESNOCHECK TYPEmetadata fixtures, simple and chained object aliases for both field assignments andCHECK TYPEmetadata (including a chained TEXT-field check), aliased object-method calls including chained aliases in modernDOand compatibilityCALL ... WITHforms (with a dedicated positive modernDOchained-alias fixture), field-to-field, compound arithmetic field expressions, and arithmetic/text expression result types, negative NUMBER/TEXT/YESNO fieldCHECK TYPEmetadata mismatches, NUMBER/TEXT/YESNO-expectation unknown-fieldCHECK TYPEdiagnostics, missing-object field assignment andCHECK TYPEdiagnostics, NUMBER/TEXT/YESNO wrong-type diagnostics, field collection when aHASfield appears after a simple method, NUMBER/TEXT/YESNO-valued unknown-field diagnostics for direct assignments to undeclared fields including explicitly typed assignments, numeric and text results from simple arithmetic/text expressions in object-field assignments, plus method-body field assignment andCHECK TYPEdiagnostics for NUMBER, TEXT, and YESNO fields in modern and compatibility syntax, including compatibility YESNOCHECK TYPEmetadata coverage, direct method assignments to undeclared fields now produce a beginner-facing missing-field diagnostic when the assigned expression has a known type, and a plain beginner-facing unknown-field diagnostic when the assigned expression is not inferable yet in both modern and compatibility method syntax; method-bodyCHECK TYPEnow reports an undeclared bare field with the expected type as a repair hint in both modern and compatibility method syntax, including compatibilityTAKES/ ...; explicitly typed assignments to declared method fields now validate the class-declared field type instead of trusting only the inline type annotation, so a wrong value such asSET score TEXT "oops"reports the method and field in the diagnostic
Still needed:
- Keep the focused typecheck validator's fixture list complete as new positive and negative examples are added.
claro validatenow executes the complete focused fixture matrix as well, so release validation cannot silently omit a listed typecheck example. - The expression checker now carries a known TEXT operand through all arithmetic operators so object-field and typed-function-return diagnostics do not hide addition, subtraction, multiplication, or division mistakes; focused numeric-subtraction, numeric-division, and numeric-multiplication positives plus text-operand addition, subtraction, multiplication, and division negatives protect this behavior. Typed-function return diagnostics now have focused subtraction and division positives alongside multiplication coverage. Text concatenation into a TEXT field has focused positive fixtures for both operand orders, including concatenation of two TEXT object fields. Each numeric operator names the text operand and explains that it needs NUMBER values.
- Method return validation now has focused positive subtraction and division fixtures alongside the existing arithmetic return coverage, including compatibility
TAKES/LEARNEDsubtraction and division cases, so checked NUMBER method parameters and numeric subtraction or division remain accepted by the release validator in both method spellings. - Modern and compatibility
TAKES/LEARNEDmethods have positive NUMBER, TEXT, and YESNO field-assignment coverage, and modern plus compatibility method-bodyCHECK TYPEmetadata now have positive YESNO coverage beside the wrong-value diagnostics. - Modern method-body TEXT concatenation has positive coverage in both operand orders, such as
SET first first + "!"andSET last "Dr. " + last. - Compatibility method-body TEXT concatenation has matching positive coverage in both operand orders, so
TAKES/LEARNEDmethods keep the same beginner-safe field update behavior. - richer typed function signatures and return values beyond the focused simple function/method
RETURNS TYPEcheck - type checking through branches and loops
- richer object field type checking beyond simple direct assignments
- typed imports/modules
- inline method-field annotations must agree with the class
HASdeclaration; conflicting annotations now get a repair-oriented diagnostic even when the value's inferred type is otherwise correct.
Good starting docs:
ADVANCED_STATIC_TYPING.mdV1_14_STATIC_TYPES.md(feature history plus examples)
Objects and classes
Status: Foundation present
Ready now:
CLASS- typed
HASfields NEW- field access such as
player.score - simple methods, including static diagnostics for checked method parameters
- direct object-field assignments with a narrow static diagnostic for wrong value types
- object helper commands
Still needed:
- broader object field type checking across aliases, methods, and more complex object flows
- constructor/default-value polish
- clearer object debugging and teaching examples
Good starting docs:
V1_15_OBJECTS_CLASSES.mdREADME.md
Package and project workflow
Status: Foundation present
Ready now:
claro newclaro package initclaro package add/list/remove/doctor/lock- local project files such as
claro.project,claro.lock, andpackages/ - starter projects from
claro newnow use the same manifest-version and lock-version headers asclaro package init - the default
maketarget builds bothclaroandclaro.exe, so cross-platform release validators exercise freshly built executables - project-name safety checks for
claro new, so unsafe names such as../badare rejected before Claro creates folders - package-name safety checks when adding packages, including the 64-character package-name limit, when
claro package doctoraudits an existingclaro.project, whenclaro package lockwrites lockfile data, whenclaro package listshows existing packages, whenclaro package initsees unsafe names already present inclaro.project, whenclaro package addsees unsafe names already present inclaro.project, whenclaro package removerefreshes the lockfile after an edit, when learners need to remove an unsafe package entry that is already present, whenclaro package doctorverifies lockfile checksums for listed packages, and whenclaro package doctorrejects lockfile package entries that are not listed inclaro.project claro package doctorrejects a listed package manifest whosename:does not match the package name inclaro.projectclaro package doctorcompares the complete manifestname:value, so a prefix such asmath-tools-extracannot be accepted for packagemath-toolsclaro package doctorrequires exactly one complete supported packagemanifest-version: 1field; missing, blank, unsupported, or duplicate format fields get aBAD package manifest versiondiagnostic with the file path and a repair hint, rather than calling an existing file missingclaro package doctorcompares the complete manifestchecksum:value, so a valid checksum followed by extra text is rejectedclaro package doctorrequires the complete supportedmanifest-version: 1value inclaro.project, so a prefix such asmanifest-version: 10is rejectedclaro package doctorrequires the complete supportedversion: 1value in each local package manifest, so a prefix such asversion: 10is rejectedclaro package doctorrequires exactly one currentversion: v1.18.26line inclaro.lock, so stale, missing, blank, or duplicate lockfile release versions are rejectedclaro package doctorrequires the complete supportedsource: localvalue in each local package manifest, so a prefix such assource: local-extrais rejected- package project entries must be unique;
claro package doctor,list,add,init, andlockreject duplicate names instead of generating ambiguous package or lockfile data - lockfile package entries must also be unique;
claro package doctorreports duplicate lock entries instead of accepting ambiguous package/checksum data - package manifest
name:entries must also be unique;claro package doctorreportsBAD package manifest nameinstead of accepting ambiguous package identity data - package manifest
checksum:entries must also be unique;claro package doctorreportsBAD package checksuminstead of accepting ambiguous integrity data - package manifest
version:entries must also be unique and must contain exactly1;claro package doctorreportsBAD package versioninstead of accepting ambiguous package metadata - project manifests must contain exactly one
manifest-version: 1field; duplicate or prefix-matching values are rejected withBAD project manifest version: expected 1 - project manifests must contain exactly one non-empty
name:field;claro package doctorreportsBAD project manifest name: expected a non-empty namewhen the project identity is missing or blank
Still needed:
- install from local path
- package version constraints
- publish/export format
- remote registry protocol
- checksum/signature verification before downloads
Good starting docs:
V1_16_PACKAGES_PROJECTS.mdPACKAGE_REGISTRY.md
Networking
Status: Foundation present
Ready now:
- beginner HTTP commands
- offline
claro://URLs for tests and lessons LASTHTTP- real
http://andhttps://throughcurlwhen available
Still needed:
- web server syntax
- routes
- request/response helpers
- localhost-safe server mode
Good starting docs:
V1_17_NETWORKING.mdWEB_SERVER_PLAN.md
Concurrency and tasks
Status: Foundation present
Ready now:
- deterministic task/concurrency helpers where documented
- beginner-safe direction toward cooperative tasks
Still needed:
- full cooperative scheduler semantics
- cancellation
- timeouts
- message passing
- decision on whether native threads should ever be exposed
Good starting docs:
CONCURRENCY.md
IDE/editor support
Status: Foundation present
Ready now:
claro ide- metadata JSON
- completion list, including the current typed-language keywords
RETURNS,CHECK, andTYPE - diagnostics helper
- Forgejo/Gitea CI coverage for the current release validation gates (
claro validate, typecheck diagnostics validation, version convention validation, package security validation, compiler warning validation, and the CI workflow coverage check); the compiler warning validator rebuildssrc/claro.cand rejects path-truncation warnings, while the workflow validator verifies these commands, including its own command, occur in executablerunsteps rather than comments
Still needed:
- syntax highlighting package
- editor extension
- hover help
- go-to-definition
- code actions/fixes
- full LSP server if/when useful
Good starting docs:
IDE.mdEDITOR_EXTENSION_PLAN.md
Graphics and SDL
Status: Experimental/planned
Ready now:
- placeholder/planned graphics documentation
- experimental examples may exist for future SDL work
Not ready in the stable executable:
- real SDL window/drawing support
- beginner game lessons that run everywhere
Good starting docs:
GRAPHICS.mdSDL12.md
Historical docs
Files named RC*_NOTES.md, RC*_VALIDATION.md, older V1_*_VALIDATION.md, and older release notes are kept for project history. They may mention old version numbers, old planned milestones, or old validation scripts. Use them to understand how Claro evolved; do not treat them as the current beginner path.
Which docs should a new learner trust first?
For the current v1.18.26 package, read docs in this order:
QUICK_START.md,FIRST_HOUR.md, andlessons/README.mdfor first programs.README.mdand this file for the current feature map.ROADMAP.mdfor the next v1 work.
Use feature docs with these expectations:
- Ready for beginner lessons:
SPEC.md,SIMPLE_FUNCTIONS.md,ERRORS.md,LINTER.md,TESTING.md,FORMATTER.md. - Foundation present:
ADVANCED_STATIC_TYPING.md,V1_14_STATIC_TYPES.md,V1_15_OBJECTS_CLASSES.md,V1_16_PACKAGES_PROJECTS.md,V1_17_NETWORKING.md,CONCURRENCY.md,IDE.md. - Plans or experiments:
PACKAGE_REGISTRY.md,WEB_SERVER_PLAN.md,EDITOR_EXTENSION_PLAN.md,GRAPHICS.md,SDL12.md,COMPLETE_PLATFORM_ROADMAP.md,FUTURE_FEATURES_ROADMAP.md.
If a doc sounds more ambitious than this status map, treat this file as the current source of truth and update the older doc before teaching from it.