Use generic return type from CommandLine::getCommand
to avoid type cast
#205
Labels
Milestone
CommandLine::getCommand
to avoid type cast
#205
Currently client code needs to cast the return type of
getCommand
:The above cast adds no value.
This ticket proposes to change the return type of
getCommand
to a generic type, so client code can look like this instead:This is unusual but no more or less type safe than requiring client code to do a type cast.
The text was updated successfully, but these errors were encountered: