Re: guile-sjson's first public release (v0.2)!

2017-04-24 Thread Marko Rauhamaa
Christopher Allan Webber : > In sum though, it has a nice s-expression based syntax: > > scheme@(guile-user)> (define a-horse > '(@ ("name" "buttercup") > ("age" 6) > ("animal" "horse") >

guile-sjson's first public release (v0.2)!

2017-04-24 Thread Christopher Allan Webber
Hello all! I'm happy to announce the first public release of guile-sjson! What's guile-sjson? Well, it's basically the previous work David Thompson did on (ice-9 json), but since that seemed to sit without being merged for a while and I needed it for several projects, I went ahead and turned it

Re: ?-suffix for booleans... good-idea? or bad-idea?

2017-04-24 Thread Alex Vong
Good question! I can't decide as well. I want to know how people think about it. In a lazy language, a variable is a 0-ary thunk, while a predicate is a 1-ary thunk. Since they are really just special case of a general thing, it make sense to use foo? for both cases. But we all know guile is not l

Re: termbox bindings

2017-04-24 Thread Amirouche
Le 24/04/2017 à 00:43, Amirouche a écrit : Also, there is giant bug, where it's not possible to split a line! I fixed it in https://github.com/amirouche/azul.scm/commit/9bc643661e20d19dadc906efdbb413ae658b5573

?-suffix for booleans... good-idea? or bad-idea?

2017-04-24 Thread Christopher Allan Webber
Hello everyone! Here's a little bikeshed for us to paint. I've noticed that it's common in Guile modules to use "foo?" for variable names involving booleans. It's tempting, because this looks an awful lot like you're asking a question... and it's also common for this even to be keyword arguments