ENUMS simulations
Frank Schima
frank-list2 at mindstarprods.com
Fri Jun 18 22:23:36 CDT 2004
On Jun 18, 2004, at 4:50 PM, Ruslan Zasukhin wrote:
> * then we can write such syntax:
>
> db.SqlSelect(
> query,
> ECursorType.kServerSide
> ELockType.kReadOnly,
> Edirection.ForwardOnly )
>
>
> Compare to current attempt
>
> db.SqlSelect(
> query,
> Valentina.kServerSide
> Valentina.kReadOnly,
> Valentina.ForwardOnly )
>
> It looks to me that the first way is more clean.
> And again, Java work with enums in this way.
It seems like it would make the code slightly easier to read the first
way, but harder to write. Now we have to remember all these different
Enum types. Since it makes coding more difficult, I am inclined to
"vote" for the second way.
Maybe as a compromise, you could do it both ways so we can choose which
way to code?
-Frank
More information about the Valentina-beta
mailing list