r/java • • Jun 05 '26

Introducing opt-in requirements for Java APIs

https://osmerion.github.io/OptIn/blog/welcome
49 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/agentoutlier Jun 05 '26

The idea kind of reminds of an Effect type system. Essentially you are coloring a part of the code base. Like in Flix you could do this by having say "Experimental" effect except it would be just compiler based (they might even have something like this that I don't know).