On 10/13/2016 10:13 PM, Sela, Guy wrote:
> Hi,
> Did anyone consider adding Lombok into ODL?
> https://projectlombok.org/features/
> https://gualtierotesta.wordpress.com/2014/03/03/tutorial-using-lombok-to-reduce-boilerplate-code-in-java/

Not seriously, no. There are three main reasons:

1) for inter-component interactions we use YANG and hence have an
equivalent for getters/builders/hashCode/equals

2) concerns about code readability and learning curve for newcomers

3) it makes performance trade-offs without giving sufficient control.
For example https://projectlombok.org/features/GetterLazy.html -- that
AtomicReference is used only as a lock, wasting 16-24 bytes of memory
for each such field.

Overall it does not look like a mature enough project for the code we
have evaluated it for (yangtools, mdsal, bgpcep).


Attachment: signature.asc
Description: OpenPGP digital signature

controller-dev mailing list

Reply via email to