01mf02 / jaq

A jq clone focussed on correctness, speed, and simplicity
MIT License
2.7k stars 67 forks source link

Simplify object construction. #163

Closed 01mf02 closed 6 months ago

01mf02 commented 7 months ago

This desugars object construction {k1: v1, ..., kn: vn} into {k1: v1} + ... + {kn: vn} for simpler execution. At the same time, this refactors LIR construction a bit.

This does not add any new feature, it only simplifies the implementation.