clauth icon indicating copy to clipboard operation
clauth copied to clipboard

refactored new-user

Open danielsz opened this issue 11 years ago • 2 comments

This could be as simple as that unless I have misunderstood your intent.

danielsz avatar May 01 '14 22:05 danielsz

I had indeed misunderstood, but the tests showed me the way. :-) New-user can accept either a map of attributes, or string parameters.

danielsz avatar May 01 '14 22:05 danielsz

Same technique used for register-user: taking advantage of Clojure destructuring we can reduce function signatures.

danielsz avatar May 01 '14 23:05 danielsz