Is there a processor / plugin that provides Java support for referential transparency, immutabiliyt, etc.?

It looks pretty simple: For example, @Immutable in a class that the processor would then give an error if there were any non-final calls to the field. This was to ensure that all collaborators will also be unchanged.

A @ReferentiallyTransparent (best name?) Could be imposed on methods that would then check that all calls and collaborators are also tagged @RefTrans and @Immutable ...

+3
source share
1 answer

You may be interested in the following article: Confirmed functional cleanliness in Java

:

, - - , , . , , . , , Java Joe-E; , . Joe-E, . , AES , HTML , . , , . , .

+2

Source: https://habr.com/ru/post/1780954/


All Articles