Having worked with kotlin sealed classes for some time now, I feel that the Java 15 version of sealed classes are more flexible and allows better readability with the offence of being verbose on the declaration. Which one will you prefer?

Having worked with kotlin sealed classes for some time now, I feel that the Java 15 version of sealed classes are more flexible and allows better readability with the offence of being verbose on the declaration. Which one will you prefer?

submitted by /u/s_a_u_r_a_b_h
[link] [comments]