2026.04.23¶
Sibling sequences that appear as values of the same dict now widen to a common element type at each matching position, so a caller iterating the dict values tuple-style sees a consistent element type at each positional slot instead of one branch narrowed to a concrete type and another collapsed to the fallback. The widening uses the language’s fallback sequence opener when the inferred types diverge and is skipped for variant-typed languages (e.g. C++) whose fallback opener is element-specific rather than universally accepting.
lint-haskellin.github/workflows/lint.ymlnow passes-Wall -Werrorto both the syntax check and the end-to-end build, so warnings such as-Wunused-matches,-Woverlapping-patterns, and-Wtype-defaultsfail the job instead of being silently logged.Haskellgenerated output was updated to compile clean under-Wall: theNum/Fractionalinstances use_for unused parameters, the catch-allnegate _clause is now omitted whenValhas only numeric constructors, tuple-sequence bindings carry a(Val, Val, ...)annotation, call stubs get explicit type signatures, transform-wrapper stubs use a polymorphic argument type,mainbinds each call result with_ <-, and theData.Timeimport set dropssecondsToDiffTimewhen every datetime has microseconds.Javadeclarations and reassignments whose value ends in a//line comment now place the terminating;on the code line rather than on the comment line, wherejavacpreviously parsed it as part of the comment and rejected the program with';' expected.Mojo.skip_null_dict_valuesis nowTrueso dicts containing null values render as the emptyDict[String, String]()literal (previously they emitted{"k": None, ...}, which the Mojo compiler rejects becauseNoneTypeis not a usable dict value type). Mixed-type inputs continue to raiseHeterogeneousScalarCollectionErroras before; this only affects dicts whose values are entirelynull.literalize_callnow accepts{"$ref": "name"}markers at argument positions, emittingnameas a bare identifier instead of formatting the value as a literal. Refs and literals can be mixed in the same call, and the marker is detected across all four input formats (JSON, JSON5, YAML, TOML). Ref dicts are excluded from data-shape validation and data-driven preamble inference so they do not drag in imports for the{str: str}shape of the marker itself.lint-objectivecin.github/workflows/lint.ymlnow passes-Werrorto bothclang -fsyntax-onlyand the end-to-endclangcompile step so warnings such as-Wimplicitly-unsigned-literalfail the job instead of being silently logged.ObjectiveC.format_integernow appends aULLsuffix to values aboveLLONG_MAX(matching the C fallback) and raisesUnrepresentableIntegerErrorfor values belowLLONG_MIN, so emitted fixtures compile cleanly under the stricter workflow.Added
Nim.HeterogeneousStrategieswith anOBJECT_VARIANToption that auto-generates a Nim object variant in the preamble whenever a dict, list, or sibling-list pair contains scalar values of more than one Nim type. Each heterogeneous value is wrapped at the call site as{VariantName}(kind: vkX, xVal: value); only the branches actually present in the data are emitted. The strategy switches the dict syntax from%* {key: value}to{key: value}.toTable(importingtablesinstead ofjson) so the object variants can be stored directly, and nested sequences render as@[...]at every level. The variant-type name defaults toValueand is configurable via the newheterogeneous_value_variant_nameconstructor argument.OBJECT_VARIANTis incompatible withDeclarationStyles.CONSTbecause.toTableand@[]are runtime constructors; the constructor raisesIncompatibleFormatsErrorfor that combination. The default remainsHeterogeneousStrategies.ERROR(unchanged behavior).The
heterogeneous_strategyvariant case list now includes theordered_mapfixture, covering RustTAGGED_ENUMand DhallUNION_TYPErendering on!!omapinputs.lint-swiftin.github/workflows/lint.ymlnow runs itsswiftc -typecheckstep in parallel viaxargs -P, replacing the previous serialwhileloop so the job no longer cold-starts the compiler one fixture at a time.lint-swiftin.github/workflows/lint.ymlnow runs each Swift fixture end-to-end viaswiftin script mode, catching runtime errors thatswiftc -typecheckalone could miss (for example, integer literals that overflowInt). So that every emitted fixture compiles,Swift.format_integernow raisesUnrepresentableIntegerErrorfor values outside the signed 64-bit range, matching the behavior of other languages without native arbitrary-precision integer support.lint-groovyin.github/workflows/lint.ymlnow runs each Groovy fixture end-to-end, catching runtime errors (calls to undefined functions, missing module imports, failed assertions) that the existinggroovyccompile-only step let through.Groovy.format_call_stubnow emits a singleMap _argsmethod parameter whencall_styleisKEYWORD. Previously thecall_keyword_argsfixture trippedMissingMethodExceptionbecause Groovy passes named arguments as a singleLinkedHashMapthat a positional parameter list rejects.POSITIONALstubs keep the concrete parameter list unchanged.lint-objectivecnow executes each fixture end-to-end instead of only syntax-checking it, mirroringlint-bash/lint-javascript/lint-perletc. To make this possible, Objective-C declarations and reassignments now box primitive scalars the same way collection entries do (id x = 42;→id x = @(42);), single-name call stubs emit astaticdefinition so fixtures link, andObjectiveC.supports_scalar_inline_commentsis nowFalse. Previously the trailing//comment swallowed the statement terminator. A pre-existing casing bug in the workflow’slang_patterns(objective_c*.minstead ofObjectiveC*.m) that silently skipped every fixture is also fixed.lint-elmin.github/workflows/lint.ymlnow runs each Elm fixture end-to-end. A newRun Elm filesstep compiles each fixture alongside a smallMain.elmwrapper whosePlatform.workerinit forcesCheck.my_data, emits JavaScript viaelm make, and executes it with Node so runtime crashes such asDebug.todosurface in CI. Thescalar_int_very_negative_largefixture is skipped because the Elm 0.19.1 code generator emits--<digits>(two unary minuses) for integers at the int64 boundary, which JavaScript rejects as a prefix-decrement syntax error.lint-smlin.github/workflows/lint.ymlnow runs each Standard ML fixture end-to-end. BecauseMLtonnever evaluates astructure’s body unless a top-level expression forces it, the new step compiles each fixture via an ML Basis file that concatenates the fixture with a smallval _ = Check.my_datasnippet and runs the resulting binary, catching runtime errors such as references to undefined names, missing module imports, or failed assertions.Removed the K&R-style empty-prototype suppression directives from C and Objective-C call stubs.
C.format_call_preamble_stubandObjectiveC.format_call_preamble_stubnow emit concrete prototypes (CValparameters for C,idparameters for Objective-C) sized to the call’s parameter list, and an internalformat_call_arghook wraps each call argument so the call site matches the prototype. Generated C and Objective-C call code now compiles cleanly under-Wstrict-prototypes -Wdeprecated-non-prototype -Werrorwithout suppression.C++ container types now pick the narrowest integer type that holds the actual values in each collection:
intwhen every value fits in 32 bits, otherwiselong long. This mirrors the existing per-value suffix logic in Rust and fixes a case wherestd::variant<int, …>could not hold literals aboveINT_MAX.Cpp.NumericLiteralSuffixes.AUTOstill emitslong+Lsuffix for every integer.Added
Dhall.HeterogeneousStrategieswith aUNION_TYPEoption that auto-generates a Dhall union type in the preamble whenever a dict, list, or sibling-list pair contains scalar values of more than one Dhall type. Each heterogeneous value is wrapped at the call site as{UnionName}.{Variant} payload; only the variants actually present in the data are emitted. The union name defaults toValueand is configurable via the newheterogeneous_value_union_nameconstructor argument. The default remainsHeterogeneousStrategies.ERROR(unchanged behavior).Added
literalize_callsupport for Clojure:Clojure.format_call_stubemitsdefnstubs with[& _args]so generated definitions accept any mix of positional and keyword arguments, andClojure.CallStyles.PREFIX_KEYWORDrenders calls as(func :name value).Added
literalize_callsupport for Objective-C:ObjectiveC.format_call_preamble_stubemits C-style forward declarations and nestedstructchains with function-pointer leaves for dotted targets, andObjectiveC.CallStyles.POSITIONALrenders calls asfunc(arg1, arg2).Added
literalize_callsupport for Perl:Perl.format_call_stubemits an emptysub {}declaration for each dot-separated part of the target name, so call expressions (including dotted targets, where.is Perl’s string concatenation operator) compile cleanly underperl -c.