ENUMS simulations

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Jun 19 09:35:50 CDT 2004


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 ?


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina-beta mailing list