You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #18, we should create an annotation to indicate in block interfaces/implementations which methods are allowed for each version. Some ideas:
Interface methods specific for some version should have an annotation to provide the allowed versions for it. Programmatically, an API user can get the methods allowed for the block-version: the getVersion method from the block can be compared to the annotation versions; if the annotation is not present, all the versions can call the method.
Implementations for concrete blocks may contain an annotation for methods that are forbidden, because they may fail if they are called.
The implementation for the latest version of a concrete block should have another annotation, to be able to find the latest implementation. New files should be written always using the latest version of every block. The rest of the implementation is for backwards-compatibility with previous formats (reading and maintaining the format of the block if copied).
More ideas will come, but this is once the project is a bit more mature...
The text was updated successfully, but these errors were encountered:
After #18, we should create an annotation to indicate in block interfaces/implementations which methods are allowed for each version. Some ideas:
More ideas will come, but this is once the project is a bit more mature...
The text was updated successfully, but these errors were encountered: