Re: and-let* is not composable?

2013-09-11 Thread Panicz Maciej Godek
2013/9/10 Ian Price > > I have a few notes unrelated to those I've already mentioned in the > thread. > > 1. Guile already has curried definitions in (ice-9 curried-definitions) > > Yes, but those are completely different. I wouldn't call "define-curried" a curried definition, but a definition of

Re: and-let* is not composable?

2013-09-11 Thread Ian Price
Panicz Maciej Godek writes: > That's not entirely true. I just need an extra pair of parentheses > to do so. The semantics is certainly different than the one of > Guile's curried definitions, but that's fine. An identifier macro would be even better, but it's still not first class. > Well, whil

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

Re: Problem with wide characters on upgrading to guile 2.x

2013-09-11 Thread Richard Shann
On Sat, 2013-09-07 at 11:07 +0200, Andy Wingo wrote: > On Mon 02 Sep 2013 10:48, Richard Shann writes: > > > On Thu, 2013-08-22 at 12:14 -0700, Mike Gran wrote: > >> >> 2. In the inner_main of your scm_with_guile call, > >> > >> >> try calling scm_setlocale. Maybe something like this? > >> >

pretty-print for 1+

2013-09-11 Thread Brian Killian
Using guile 2.0.9 and the ice-9 pretty-print module, when I apply: (pretty-print '(1+ 1)) I get: (#{1+}# 1) I was expecting: (1+ 1) Is this an issue with pretty-print or should I adjust my expectation?