Follow-up improvements from code review
- Merge import.ml into stdlib_extra.ml: import.ml now just re-exports
stdlib_extra.ml via `include Stdlib_extra`, eliminating the duplicated
utility code.
- atd/imports.ml: use Hashtbl.Make with a PathTbl functor (keyed on
string list) for the globals deduplication table, replacing the
polymorphic Hashtbl.
- atdts: dotted module paths in import declarations now map to path
separators in the generated TypeScript import. For example,
`import long.module.path` generates `./long/module/path` rather than
just `./path`.
- Add a gen-expect test for dotted module path imports in atdts.
- doc/atd-language-reference.rst: add an experimental warning about
dotted module paths, noting that their behavior may vary across
backends and support may be removed in a future release.
- doc/atdts.rst: update import path example to reflect the path-separator
behavior for dotted module paths.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
da2164
-
Mar 10 00:58 +00:00