As mentioned in the Readme, there should be no need to use forward declarations in modern oj. Doing so generally indicates an issue with the dependency tree. That said, there are times during development where a forward declaration is useful (especially when refactoring), so forward declarations shouldn't go away entirely.
The @class keyword is prime real estate that I'd like to repurpose in the future.
For oj 2.x, introduce a @forward keyword for the rare occasion where forward declarations are needed:
As mentioned in the Readme, there should be no need to use forward declarations in modern oj. Doing so generally indicates an issue with the dependency tree. That said, there are times during development where a forward declaration is useful (especially when refactoring), so forward declarations shouldn't go away entirely.
The
@class
keyword is prime real estate that I'd like to repurpose in the future.For oj 2.x, introduce a
@forward
keyword for the rare occasion where forward declarations are needed:or just: