ClojureScript

Make "try" a special form instead of a macro over the "try*" special form

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code

Description

Currently cljs parses "try*" as the special forms and delegate to the cljs.core/try macro the job of merging all the catches into one.

This patch makes "try" the special form, makes the necessary catch merging while analyzing the try block instead of using thytre cljs.core/try macro.

The rationale is to unify the try special form signature between clojure and clojurescript

Activity

Hide
David Nolen added a comment -

I couldn't get this patch to apply to master. Can we get a new one? Thanks!

Show
David Nolen added a comment - I couldn't get this patch to apply to master. Can we get a new one? Thanks!
Hide
Nicola Mometto added a comment -

I've updated the patch to clojurescript HEAD

Show
Nicola Mometto added a comment - I've updated the patch to clojurescript HEAD

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: