cloudRoutine / issueCommRepo

Sample Port of F# Uservoice Suggestions
0 stars 0 forks source link

Match descriminates on both argument evaluation and thrown exception #6

Closed cloudRoutine closed 7 years ago

cloudRoutine commented 7 years ago

Match descriminates on both argument evaluation and thrown exception [10257471]

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. "

Response

\ by fslang-admin on 1/23/2016 12:00:00 AM **

Duplicate as noted in the comments Don Syme, F# Language Evolution

cloudRoutine commented 7 years ago

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

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