linkhyrule5 comments on Introducing Familiar, a quantified reasoning assistant (feedback sought!) - Less Wrong

19 Post author: jamesf 24 July 2013 02:36AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (40)

You are viewing a single comment's thread.

Comment author: linkhyrule5 07 September 2013 12:36:24AM *  0 points [-]

Is there a way to modify a variable once you've created it, or delete it? In particular, I'd like to change the units and the value type.

Comment author: jamesf 07 September 2013 05:02:02AM *  1 point [-]

There is, though it's not implemented as a neat API function (yet), so if you're using the official release from when this was first posted you can't do it. It looks like this:

(update variable (where {:name "cats"}) (set-fields {:unit "encountered" :fn "non-negative?"}))

This will break preexisting data if the prior validator wasn't a strict subset of the new validator. Converting variables into a new representation sanely and easily is something I plan to add in.