ludic/examples/rejected
Orkuncakilkaya 20d011f8e9 feat(lang): UI components as files - component Name { ... } beside Name.xml and Name.lss
The compiler turns a component declaration into:
- a record of its props and state;
- a constructor, a props setter, a model and a call;
- a class, registered with ludic.ui at start.

Its template and styles are read from beside it and compiled in, with @import inlined, and a
missing template fails the build.

In the runtime:
- each mounted instance keeps its own props and state, and `set` in a template writes the state;
- styles are scoped to the component;
- class, style and id on a component's tag land on its root, styled by the parent's sheet too;
- ui_reload re-reads a component's files from disk and keeps instances.

The package's own module is now ludic_ui, so a program may call a directory of its own ui.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 16:50:12 +03:00
..
data feat(lang): L9 resource files - registry ... from 2026-09-24 14:00:20 +03:00
private_bank feat(lang): L3 module scope - module, export, friend module 2026-09-24 00:52:12 +03:00
private_kit feat(lang): L5 generic records and functions 2026-09-24 02:21:15 +03:00
alias_arity.ludic feat(lang): L6 namespaces declared in Ludic - alias 2026-09-24 02:40:57 +03:00
alias_twice.ludic feat(lang): L6 namespaces declared in Ludic - alias 2026-09-24 02:40:57 +03:00
component_no_template.ludic feat(lang): UI components as files - component Name { ... } beside Name.xml and Name.lss 2026-09-24 16:50:12 +03:00
default_missing.ludic feat(lang): L11 views and templates - the UI is markup, not code 2026-09-24 15:58:47 +03:00
default_unknown.ludic feat(lang): L11 views and templates - the UI is markup, not code 2026-09-24 15:58:47 +03:00
duplicate_const.ludic feat(lang): a name is defined once, a local once per block, and a result is always returned 2026-09-23 23:55:20 +03:00
duplicate_property.ludic feat(lang): a name is defined once, a local once per block, and a result is always returned 2026-09-23 23:55:20 +03:00
every_error.ludic feat(lang): L4 type checker between parse and emit 2026-09-24 01:34:49 +03:00
float_into_int.ludic feat(lang): L4 type checker between parse and emit 2026-09-24 01:34:49 +03:00
fn_type_mismatch.ludic feat(lang): functions are values (L2), and render3d takes its scene as callbacks 2026-09-24 00:27:26 +03:00
generic_arity.ludic feat(lang): L5 generic records and functions 2026-09-24 02:21:15 +03:00
generic_mismatch.ludic feat(lang): L5 generic records and functions 2026-09-24 02:21:15 +03:00
generic_unbound.ludic feat(lang): L5 generic records and functions 2026-09-24 02:21:15 +03:00
missing_return.ludic feat(lang): a name is defined once, a local once per block, and a result is always returned 2026-09-23 23:55:20 +03:00
positional_after_named.ludic feat(lang): L11 views and templates - the UI is markup, not code 2026-09-24 15:58:47 +03:00
private_generic.ludic feat(lang): L5 generic records and functions 2026-09-24 02:21:15 +03:00
private_module.ludic feat(lang): L3 module scope - module, export, friend module 2026-09-24 00:52:12 +03:00
record_as_text.ludic feat(lang): L4 type checker between parse and emit 2026-09-24 01:34:49 +03:00
record_mixup.ludic feat(lang): L4 type checker between parse and emit 2026-09-24 01:34:49 +03:00
redeclared_local.ludic feat(lang): a name is defined once, a local once per block, and a result is always returned 2026-09-23 23:55:20 +03:00
registry_field.ludic feat(lang): L8 registries by declaration - registry and def 2026-09-24 13:34:51 +03:00
registry_twice.ludic feat(lang): L8 registries by declaration - registry and def 2026-09-24 13:34:51 +03:00
registry_unknown.ludic feat(lang): L8 registries by declaration - registry and def 2026-09-24 13:34:51 +03:00
resource_field.ludic feat(lang): L9 resource files - registry ... from 2026-09-24 14:00:20 +03:00
resource_missing.ludic feat(lang): L9 resource files - registry ... from 2026-09-24 14:00:20 +03:00
text_plus_number.ludic feat(lang): L4 type checker between parse and emit 2026-09-24 01:34:49 +03:00
view_untyped.ludic feat(lang): L11 views and templates - the UI is markup, not code 2026-09-24 15:58:47 +03:00
view_without_ui.ludic feat(lang): L11 views and templates - the UI is markup, not code 2026-09-24 15:58:47 +03:00
wrong_arity.ludic feat(lang): L4 type checker between parse and emit 2026-09-24 01:34:49 +03:00