Yes thanks to everyone, I actually did read that guide it but after I
implemented that function.
And I really like this convention, but I just need to get used before
I remember to add the rigth ? and !.

Anyway another question about that, so suppose my ref is initialized
as (defonce live-games (ref {}))
what am I supposed to do in the tests?

Should I just create a reset-games function there that resets the
thing again to (ref {})

Or is that wrong because in that case I would access and set some
private implementation detail?
So I should then still move the reset-games function into the
implementation file?

Thanks

2015-04-14 11:03 GMT+01:00 myguidingstar <phuthuycuoimayhut...@gmail.com>:
> On Tuesday, April 14, 2015 at 2:53:16 AM UTC+7, Sebastian Bensusan wrote:
>>
>> As a side notes, in Lisp it is convention to append "!" to those functions
>> that have side-effects (i.e. mutate state). A good candidate would be
>> `reset-games!`.
>
>
> This is also an evidence that Andrea hasn't read the Clojure style guide and
> I highly recommend anyone in the community follow it:
>
> https://github.com/bbatsov/clojure-style-guide#naming
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to