baronfel / fsharp-lang-testbed

0 stars 0 forks source link

Match descriminates on both argument evaluation and thrown exception #7

Open baronfel opened 7 years ago

baronfel commented 7 years ago

Idea 10257471: Match descriminates on both argument evaluation and thrown exception

Status : declined

Submitted by William Blum on 10/18/2015 12:00:00 AM

2 votes

As explained in OCaml 4.02 release note: "The match construct was extended to discriminate not just on the value of its argument expression, but also on exceptions arising out of the evaluation of this expression. This solves an old problem: in a let x = a in b, catch exceptions raised by a but not those raised by b. "

baronfel commented 7 years ago

Comment by Radek Micek on 10/19/2015 2:50:00 PM

Isn't this a duplicate of /ideas/suggestion-6536829-implement-ocaml-s-new-match-exception-syntax