dollabs / pamela

Probabalistic Advanced Modeling and Execution Learning Architecture
Apache License 2.0
233 stars 15 forks source link

defpclass with empty :methods declarations results in a (cryptic) error #113

Closed dcerys closed 7 years ago

dcerys commented 7 years ago

A simple definition such as:

(defpclass foo []
  :methods [])

results in the following (cryptic) error:

ERROR [pamela.cli:0] - 
 ERROR caught exception:
Wrong number of args (0) passed to: parser/merge-keys

Based on the Pamela BNF, a 0-method declaration should be accepted.

dcerys commented 7 years ago

Since multiple developers have hit this, let's correct this.