robert-strandh / SICL

A fresh implementation of Common Lisp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplify standard condition reporting

phoe opened this issue · comments

(defmethod report-condition ((condition serious-condition)
stream
(language (eql 'english)))
(format stream
"A condition of type SERIOUS-CONDITION was signaled."))

Many conditions defined there have almost the same reports that could altogether be simplified to (format stream "A condition of type ~S was signaled." (type-of condition)). Perhaps it would be good to define this report as a method on condition and let all other conditions inherit this default reporter?