clojure-android / neko

The Clojure/Android Toolkit
Other
297 stars 36 forks source link

Defpreference #54

Closed Malabarba closed 9 years ago

Malabarba commented 9 years ago

This PR defines a defpreference macro. Using this macro to define a variable will define an atom instead, and its value will be recorded throughout sessions, assuming initialize-preferences is called at some point.

This is an initial proposal, let me know what you think of the implementation. In particular, there's no real need for the sp variable. I just included it in case the user wants to edit some values manually, but it could be removed.

Malabarba commented 9 years ago

Oh wait, I based the PR off the wrong branch.