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
RE: Objects contrib: new URL ...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-06-21 (17:41)
From: Don Syme <dsyme@m...>
Subject: RE: Objects contrib: new URL ...
> So I weaken my statement: casts are not an absolute evil which should
> not be allowed at all, but at least they should be hard to use, enough
> to encourage people to choose other methods when possible.

I'm not in favour of the extensive use of casts, but this 
sounds like the kind of reasoning that was behind SML's syntax for
references and imperative programming, which makes the imperative features
of SML very hard to use.  The problem is that when you really do need to use
casts in an
application, e.g. in window programming, then you'll probably need to use
them a fair bit,
so an awkward syntax could be quite problematic.