Re: Doctest for guile

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 20:45, Dmitry Bogatov writes: > $2 = ((name . foo) (foo . bar) (baz . qux)) > As you can see, I am missing arity. Is it git patch? Probably you're using master. I think arity is not a property there, but instead accessed using other accessors. Regards, Andy -- http:/

Re: Doctest for guile

2013-09-17 Thread Dmitry Bogatov
Andy Wingo writes: >> I it will be found useful enough, I will gladly work on patch to integrate >> doctest in Guile guild script. > > I was going to write exactly this! "guild doctest '(foo)'" sounds > sensible to me. > > Note also that the compiler will residualize other properties in > addit

Re: Doctest for guile

2013-09-17 Thread Ian Price
Dmitry Bogatov writes: > Hello! > I am glad to offer implementation of doctest in Guile --- way to declare > and check tests in function docstring. In most simple way, if in > docstring you write following: > > +++ (foo 1 2 3) > --- 6 I have to admit, I really don't like these sorts of m

Re: Doctest for guile

2013-09-17 Thread Andy Wingo
On Wed 11 Sep 2013 17:03, Dmitry Bogatov writes: > $ guile doctest.scm '(foo)' Neat! > + Your ideas? > > I it will be found useful enough, I will gladly work on patch to integrate > doctest in Guile guild script. I was going to write exactly this! "guild doctest '(foo)'" sounds sensible to me

Doctest for guile

2013-09-11 Thread Dmitry Bogatov
Hello! I am glad to offer implementation of doctest in Guile --- way to declare and check tests in function docstring. In most simple way, if in docstring you write following: +++ (foo 1 2 3) --- 6 doctests will check if it is really so. I belive it encourage writing more modular, generi