-
Currently encapsulation is not present, which is an urgent problem for a widely used application. We should only expose those classes and functions that are necessary for users. This will help users to quickly find what they want, as well as help us develop new features and modify existing code without worrying about breaking users' applications.
The following are public:
The following are internal:
Also, I suggest separating AST itself and the actual parsing process, like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
In case any of internal API is needed by some consumers/integrations, it can be marked with opt-in annotations. |
Beta Was this translation helpful? Give feedback.
-
Not quite relevant to encapsulation, but what do you think? I mean, to separate them into two files. |
Beta Was this translation helpful? Give feedback.
-
Why are all the sub-exceptions marked as internal? The only two visible ones are very generic. |
Beta Was this translation helpful? Give feedback.
In case any of internal API is needed by some consumers/integrations, it can be marked with opt-in annotations.