dgrnbrg / piplin

Compile Clojure to FPGAs
piplin.org
93 stars 10 forks source link

Unary + and * should throw exceptions or be identity, unary - should be negation #60

Open dgrnbrg opened 11 years ago

dgrnbrg commented 11 years ago

Currently, these functions are not well defined.

@vsergeev discovered that the errors are unintuitive.

This could be done with enhancements to the binopimpl macro to provide defaults for the unary cases, and then optional overrides.