Need better error report when omitting parameter list from (fn) or (defn)

Description

Somehow I just forgot to define parameters for my zero argument function and it took me a long time to notice it, mostly because I had been working with a lot of macros but especially because I didn't get an error that said "You must provide a list of parameter names", but instead: "Don't know how to create ISeq from: Symbol".

Environment

None

Attachments

3
  • 08 Mar 2012, 01:49 AM
  • 08 Nov 2011, 09:29 PM
  • 09 Sep 2011, 11:23 AM

Activity

Show:

Stuart Sierra August 24, 2012 at 2:34 PM

Patch applied.

Stuart Sierra August 17, 2012 at 9:12 PM

Screened.

Andy Fingerhut March 8, 2012 at 1:49 AM

clj-157-better-err-msgs-for-defn-fn-syntax-errors-patch2.txt has no substantive changes from Ambrose's two patches. It does combine them into one commit, and unlike the older ones applies cleanly to latest master as of March 7, 2012.

Stuart Sierra November 28, 2011 at 10:28 PM

Changing priority to "Minor"

Stuart Sierra November 28, 2011 at 10:28 PM

Vetted. Moving to "Approved Backlog" because it's an enhancement we would like to have in the next release.

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code and Test

Priority

Fix versions

Created July 20, 2009 at 4:33 PM
Updated March 1, 2013 at 3:49 PM
Resolved March 1, 2013 at 3:49 PM