refactor: rename dynamic-vars.ss, extract natives-format.ss (jolt-7dkx)
Two small clarity moves from the review: - dynamic-vars.ss -> dynamic-var-defaults.ss. It holds the default VALUES of a few core dynamic vars (*clojure-version*, *assert*, …); the near-identical dyn-binding.ss holds the binding-stack machinery. The names were easy to confuse. - Pull the ~60-line %-format engine out of the natives-misc.ss grab-bag into natives-format.ss (its ->long/pad-left/fmt-float helpers were local to it). rt.ss loads + MODULES.md updated. Runtime .ss, no re-mint; make test green, format + the dynamic vars verified.
This commit is contained in:
parent
960d8b6e24
commit
43a0da4dd0
5 changed files with 77 additions and 69 deletions
|
|
@ -26,10 +26,10 @@ composed and where a given `.ss` fits.
|
|||
- **Value model**: `values.ss` (nil/numbers/keywords/symbols), `collections.ss`
|
||||
(persistent vec + HAMT map/set), `seq.ss` + `lazy-bridge.ss` (seqs, lazy-seqs),
|
||||
`transients.ss`, `records.ss` + `records-interop.ss`.
|
||||
- **Native `clojure.core` shims**: `natives-*.ss` (array/coll/meta/misc/num/parity/
|
||||
queue/seq/str/xform), plus `predicates.ss`, `converters.ss`, `printing.ss`.
|
||||
- **Native `clojure.core` shims**: `natives-*.ss` (array/coll/format/meta/misc/num/
|
||||
queue/reader/seq/str/transduce), plus `predicates.ss`, `converters.ss`, `printing.ss`.
|
||||
- **Vars / namespaces / dynamics**: `vars.ss`, `ns.ss`, `dyn-binding.ss` (the
|
||||
thread-local binding stack), `dynamic-vars.ss` (a few `*…*` constant defaults),
|
||||
thread-local binding stack), `dynamic-var-defaults.ss` (a few `*…*` constant defaults),
|
||||
`atoms.ss`, `multimethods.ss`.
|
||||
- **Host interop**: `host-class.ss` (class tokens + method dispatch),
|
||||
`host-static.ss` (interop registry core) + `host-static-methods.ss` (`Class/member`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue