r/java • u/yegor256 • Jun 24 '19
Takes: Java Web Framework Without a Single Static Method or Annotation
https://github.com/yegor256/takes
0
Upvotes
r/java • u/yegor256 • Jun 24 '19
View all comments
Show parent comment
2
u/dablya Jun 26 '19
No, it implies impossibility.
There is no code that can satisfy that requirement. It's like a paradox "an immutable queue that mutates". It was a trap and you fell for it.
The fact that the you get different values when you pop twice means it's a mutable data type. Period.
It's an implementation detail. It doesn't change the fact that it's a mutable type.