xtype (halted)

Check-in [8e2d3432b0]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Rename `ldm` to `ldf`.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 8e2d3432b03555d40e04f0c1acabfb6961f25e3f9c374b02dcadb649af5f2020
User & Date: imagic 2025-08-26 18:41:35.641
Context
2025-08-26
18:41
Rename `ldm` to `ldf`. ... (Leaf check-in: 8e2d3432b0 user: imagic tags: trunk)
2025-01-23
00:36
Add hindsight about the project. ... (check-in: 69eb7d673b user: imagic tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to doc/hindsight.md.
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

It is more idiomatic, it plays on the strengths of the language. Coming from
bits of C++, I reused some patterns like enums and OOP; *xtype* is in line
with that. They are artifacts and not necessarily a good fit with Lua.

It is also more interoperable, ironically, because metatables are fundamental to
the language. It keeps things simple to understand and compose. I noticed this
while working on [ldm](fossils:/ldm) and the metatables dictionnary. There is
conceptual simplification in just using `getmetatable` to get the type, to peek
at methods, metamethods or metadata without the need to think about an external
dependency.

Especially, instead of being limited to mixins and types, metatables can be used
in other ways. Learning to use metatables fluently allows to build abstractions
customized to specific applications or problems.







|







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

It is more idiomatic, it plays on the strengths of the language. Coming from
bits of C++, I reused some patterns like enums and OOP; *xtype* is in line
with that. They are artifacts and not necessarily a good fit with Lua.

It is also more interoperable, ironically, because metatables are fundamental to
the language. It keeps things simple to understand and compose. I noticed this
while working on [ldf](fossils:/ldf) and the metatables dictionnary. There is
conceptual simplification in just using `getmetatable` to get the type, to peek
at methods, metamethods or metadata without the need to think about an external
dependency.

Especially, instead of being limited to mixins and types, metatables can be used
in other ways. Learning to use metatables fluently allows to build abstractions
customized to specific applications or problems.