Strumenta / antlr-kotlin

Support for Kotlin as a target for ANTLR 4
Apache License 2.0
227 stars 47 forks source link

Use objects instead of managing singletons manually #190

Closed lppedd closed 2 months ago

lppedd commented 2 months ago

An added bonus for objects in K/JS is they are eagerly initialized, if they do not contain properties, eliminating the redundant x === VOID checks.

Originally part of #188.

ftomassetti commented 2 months ago

Nice. By the way I guess Kotlin 2.0.20 is coming soon and soon we could release version 1.0.0

lppedd commented 2 months ago

@ftomassetti I'll do some tests to verify 2.0.20 is compatible with 1.9.24 consumers.

In our case, I'm still holding off because of KT-66125 and KT-70533. I want to be sure we don't incur in new unexpected behaviors.