Option::Type and Calliability::Type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Option::Type and Calliability::Type

Joseph Wang-2
Option::Type has -1 for Put and 1 for Call while
Calliability::Type has 0 for Put and 1 for Call

At the minimize the two should be made consistent, but I was wondering if it
makes sense or not to merge these two into one enum.



Reply | Threaded
Open this post in threaded view
|

Re: Option::Type and Calliability::Type

Luigi Ballabio
On Sat, 2006-10-21 at 23:08 -0500, Joseph Wang wrote:
> Option::Type has -1 for Put and 1 for Call while
> Calliability::Type has 0 for Put and 1 for Call
>
> At the minimize the two should be made consistent

Yes (even though converting enums to ints gives me the heebie-jeebies.)

> , but I was wondering if it
> makes sense or not to merge these two into one enum.

Probably. Or maybe not. Hmm. I'm not very helpful today, am I?

Ideas anyone?

Later,
        Luigi


----------------------------------------

An ideal world is left as an exercise to the reader.
-- Paul Graham