Version française
Home     About     Download     Resources     Contact us    
Browse thread
Break
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Andrew Conway <arc@s...>
Subject: Break

Dear Caml community,

I would like to suggest a "new" standard exception: Pervasives.Break.

I frequently wish to break out of a "for" loop, when looking for
something, and want some exception designed for that purpose. Having
a standard one would make programs more standard, and reduce proliferation
of custom Break type exceptions.


[ En mauvais francais ]

Chers Utilisateurs de Caml,

Je voudrais vous proposer un exception nouveau : Pervasives.break.

Souvent je veux quitter "for ... do .. done", quand je cherche quelque
chose, et il faut definer un exception neuveau. S'il y avait un
exception commun, les logiciels serait plus facile a comprendre, et
il n'y aurait pas tellement des exceptions comme A.Break, B.Break,...

Amities,

Andrew.