2026.05.18¶
~literalizer.literalize_callcan now bind a zero-argument call to avariable_form. Previously avariable_formwas rejected outright withper_element=Trueand the whole-value path (per_element=False) always passed one argument, so the zero-argument constructor case (p2 = Playlist(),let p2 = Playlist::new();) had no representation. Avariable_formis now accepted whenever the input produces exactly one call:per_element=Falseas before, orper_element=Trueover a single-element source (a[[]]source yields the zero-argument constructor). Zero calls or more than one call are rejected with~literalizer.exceptions.UnsupportedCallShapeError. As part of this, a call-result binding no longer carries a type annotation derived from the call’s argument data (which a strict type-checker rejected, since the annotation describes the argument, not the call’s return type):~literalizer.Pythonnow binds the call result with a plainname = valueand the annotation-only preamble it would have required is no longer emitted.~literalizer.literalize_callnow honorscollection_layout=CollectionLayout.COMPACTfor the$zippedliteral exposed on~literalizer.CallContext. Previously a mapping paired throughzip_sourcealways rendered multi-line, even though the call-argument mapping rendered by the same call was single-line under the same setting, which split a one-linecall_transformacross several physical lines. The$zippedliteral is now rendered through the same whole-value path as call arguments, so a compact mapping stays on one line.Added support for Haxe as a new output language.
Haxerenders every collection literal with an explicit(... : Array<Dynamic>)or(... : Map<String, Dynamic>)cast, so heterogeneous and empty collections type-check without per-variable annotations. Maps use Haxe’s["key" => value]literal syntax and strings use the double-quoted form (no interpolation). Calls use positional syntax with local-function and anonymous-structure-closure stubs emitted insidestatic function main(). A newlint-haxejob in.github/workflows/lint.ymlcompiles and runs every.hxfixture in a singlehaxe --interpinvocation.