Simplified return #93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "unknown repository"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: maitesin
I just simplified a return, but...
I would like to change the if ... else nested statements from line 108 into a switch case statement. As the key will be a string I should need to use constexpr feature from C++11 like in http://dev.krzaq.cc/switch-on-strings-with-c11/
Created by: december0123
Thanks. I reckon there's still a lot of code like this that needs simplifying. As for the switch statement, as long as it's readable and doesn't introduce code clutter it's fine by me. If you wish to try, there are other places with long if-else chains (like Mhwd::tryToParseCmdLineOptions).
Created by: maitesin
I am glad to help. Yeah, sure. I will work on that from tomorrow on and I will do a pull request as soon as I have something good.