jesusriles / Financial

1 stars 0 forks source link

Add enum when required #15

Closed jesusriles closed 1 year ago

jesusriles commented 1 year ago

There are many places where using enum would make the code easier to read.

E.g. In "Cuentas", there are some private members like tipoDeCuenta, tipoDeMoneda, archived, hidden, etc.

It's more readable to send something like Cuentas c(..., TIPODECUENTA::CREDITO, ARCHIVED::NO) than Cuentas c(..., 1, 0)