Fork me on GitHub
#clara
<
2022-04-26
>
ethanc00:04:57

Feedback request, given:

(defrecord SomeRecord [numeric-field])

(defrule some-rule 
  [SomeRecord 
    numeric-field 
   (> numeric-field 10)]
  =>
  (<do some thing>))
Should this rule: A. Fail to compile B. Compile and Assert truthiness of “numeric-field” C. Be purged from existence, as it constitutes some form of abomination The current behavior is A as it doesn’t adhere to the schema of what a constraint should be, and there are implicit assumptions in the codebase against it.

🅰️ 3