Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
Could it be possible to add lazy initialized fields when using properties? (similar to Lombok's @Getter(lazy=true)
The same syntax could be used, e.g. @val(lazy = true) Object object = <ExpensiveCalculation>;. This should only be added for @val (not for @var,@set,...), as it is only relevant for immutable fields.
Could it be possible to add lazy initialized fields when using properties? (similar to Lombok's
@Getter(lazy=true)
The same syntax could be used, e.g.
@val(lazy = true) Object object = <ExpensiveCalculation>;
. This should only be added for@val
(not for@var
,@set
,...), as it is only relevant for immutable fields.