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)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: