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
The use case is to choose an exercise from a list that can be used with the specified grading config.
The current solution is to parse the grading config with the provided exercise and if it throws an exception, assume it's incompatible with the given exercise.
Obviously this is suboptimal, because
it can not differentiate between an invalid config and one where the version is incompatible
every time the string has to be parsed again, resulting in unnecessary overhead
the code doesn't look nice
A potential solution would be to introduce an intermediate class that can later be converted to the GradingConfig type?
The use case is to choose an exercise from a list that can be used with the specified grading config.
The current solution is to parse the grading config with the provided exercise and if it throws an exception, assume it's incompatible with the given exercise.
Obviously this is suboptimal, because
A potential solution would be to introduce an intermediate class that can later be converted to the
GradingConfig
type?Maybe something like this:
The text was updated successfully, but these errors were encountered: