Quick theoretical question:
I have code which is parsing a GraphQL query into its AST, and then transforming that into a more specific "AST" (really just nested Kotlin dataclasses)
Would this be something that
lenses
would be beneficial to for performance purposes, rather than creating an entire new AST object?
s
simon.vergauwen
01/03/2022, 9:04 PM
In terms of performance it will be equal to
copy
that is on
data class
but it has more functionality since it can also work over collections, sealed types etv