Oh i See.
I have a doubt in random, the select method is performed for each round? and
the value of pos is persistent or it dies after the scope?
Thanks a lot
Em 5 de outubro de 2011 10:55, David Baelde <[email protected]>escreveu:
> Hi Fabio,
>
> Using exceptions in that kind of code is not wrong, and it's more
> efficient. Without it, we would have to continue the folding over the
> rest of the list, even though we already know what we've found. By
> raising an exception, we interrupt that computation and jump directly
> to the handler.
>
> Exceptions in OCaml are very fast, pretty much a goto/longjmp. This is
> why (unlike in other languages) they can be used in interesting ways
> as a programming construct, and not only for errors / exceptional
> cases.
>
> Cheers,
> --
> David
>
> PS: It's great to have such questions here!
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users