Add a function annotation for scoping in unit tests

2016-03-23 Thread sundbry
Hi everyone, What are your opinions on adding a special metadata to functions to provide it in scope for tests? This would be a nice language feature to have: For example, (ns banana) (defn- ^:+test phone [] "ring ring ring") (ns banana-test ...) (deftest ring-ring [] ; We can call the

Re: Add a function annotation for scoping in unit tests

2016-03-23 Thread sundbry
7;banana/phone))) >> >> This is the way private functions are typically tested. >> >> >> On Wednesday, March 23, 2016 at 6:53:12 AM UTC-5, sundbry wrote: >>> >>> Hi everyone, >>> >>> What are your opinions on adding a special metadata to functio