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
Currently, all declarations reside in public modules (file names have no leading underscore), even though most are only needed internally. Moreover, the functions used by the DSL for code generation are nested deeply, which leads to long imports and calls and ultimately badly readable code:
Closes#53
### Summary of Changes
Define a small public interface consisting of
* `safeds_runner.file_mtime`,
* `safeds_runner.memoized_call`,
* `safeds_runner.save_placeholder`.
These are used by the code generator of the
[DSL](https://github.com/Safe-DS/DSL).
Is your feature request related to a problem?
Currently, all declarations reside in public modules (file names have no leading underscore), even though most are only needed internally. Moreover, the functions used by the DSL for code generation are nested deeply, which leads to long imports and calls and ultimately badly readable code:
Desired solution
Make everything internal that does not need to be used from the outside.
Simplify usages of functions that are needed from the outside:
safeds_runner.server.pipeline_manager.runner_memoized_function_call
->safeds_runner.memoized_call
safeds_runner.server.pipeline_manager.runner_save_placeholder
->safeds_runner.save_placeholder
safeds_runner.server.pipeline_manager.runner_filemtime
->safeds_runner.file_mtime
.This can be done by a) renaming functions to the desired name and b) adding imports to
__init__
files. The functions need not be moved.Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: