ClojureScript

Partial with no provided arguments results in broken fn

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    compiled on debian x64,
    run in chrome

Description

If you try to create a partial with no parameters (I can't think of a good reason to do this) it will break.

The emitted code dispatches off the arguments list of 2 or more, if there is just one parameter it'll end up calling the fn with a bunch of undefined values.

Only considered a bug because this behavior works in clojure (partially applies 0 params)

Activity

Jonas Enlund made changes -
Field Original Value New Value
Attachment CLJS-566 [ 12302 ]
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: