Open zvr opened 4 years ago
This way it would also be easier to handle user-specified formats (see #8).
@zvr I used the method because it was very easily readable and easy to understand, also I was not able to completely understand your method.
I meant that you should separate the computation of the input format from the computation of the output format. The way you have it now, you need to repeat the code for computing the output format in all cases of input. Remember: don't duplicate code, because then you have to change all instances and it's easy to miss one.
@zvr I've made the following changes, please look for it and tell if its okay.
instead of having an:
split if into 2 separate: