Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
How to do this properly with OCaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Bardur Arantsson <spam@s...>
Subject: Re: How to do this properly with OCaml?
Michael Alexander Hamburg wrote:
> Ouch.
> I bow to your superior experience.
> Is there a syntax which makes treatment of options easy?  That is, if
> about every other line of my library is an action on objects from this
> array, is there a convenient way to use options without cluttering up the
> code?

Well, not sure if it's exactly what you're looking for, but ExtLib has 
an Option module which contains various convenience functions for 
working with option values. See


Bardur Arantsson

In anticipation, John licked his own lips.
                         A. Lloyd,