ENUMS simulations
Frank Schima
frank-list2 at mindstarprods.com
Sat Jun 19 14:38:10 CDT 2004
On Jun 19, 2004, at 2:35 AM, Ruslan Zasukhin wrote:
> On 6/19/04 5:23 AM, "Frank Schima" <frank-list2 at mindstarprods.com>
> wrote:
>
>>
>> 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?
>
> Interesting idea.
>
> But why you think it is more hard?
>
> You can simply remember that ALL enum types start with 'E'
>
> You simply type E...
> And you get list of all enum types which REALbasic knows.
>
> What you think now ?
Yes, that's fine. Based on the other posts about Enums being in RB in
the future, I agree with doing it now so we get used to it.
-Frank
More information about the Valentina-beta
mailing list