> getAllLVs and getAllIDs, however, takes no input except ConfigState.

Moreover, obtaining all logical volumes mentioned in the configuration
is a total mathematical (hence pure) function. Therefore, it *is* possible
to write it in a pure way, free of GenericResult or other sum types.
Hence you should do it.

> But it still relies on the functions that preceed it. Hence it
> is still encapsulated under GenericResult.

The fact that you choose an inappropriate way to implement it
should not be an argument for the interface.

-- 
Klaus Aehlig
Google Germany GmbH, Dienerstr. 12, 80331 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Graham Law, Christine Elizabeth Flores

Reply via email to