Improvements to Error Messsages

Description

These are a bunch of "if you do stupid things, it doesn't help"

1) If you do ann-datatype on a record, error message is incomprehensible.
2) ```clj
(ann-protocol IValidator
validate- [Term Any])
```
crashes and doesn't explain what's wrong with the syntax.
3) So does
(ann-protocol IValidator
validate- [[Term Any] -> Any])

Environment

None

Activity

Show:
Ambrose Bonnaire-Sergeant
September 21, 2013, 6:47 PM

The error message for ann-datatype'ing a record should be much clearer in 0.2.9. Please verify.

import
September 22, 2013, 3:42 PM

Comment made by: julian

(ann-datatype X [x :- Number])
(defrecord X [x])

gives

5: Reference to untyped binding: __meta
Hint: Add the annotation for __meta via check-ns or cf

which still seems pretty confusing. Sorry if I'm doing something wrong here.

Ambrose Bonnaire-Sergeant
September 23, 2013, 9:46 AM

Yes, I fixed the wrong bug.

Ambrose Bonnaire-Sergeant
September 23, 2013, 4:57 PM

Should really be fixed in 0.2.10

Ambrose Bonnaire-Sergeant
September 25, 2013, 9:29 AM

Fixed in master:

Addressing point 2:

Point 3:

Completed

Assignee

Ambrose Bonnaire-Sergeant

Reporter

import

Labels

None

Approval

None

Patch

None

Affects versions

Priority

Major
Configure