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

2017-04-25 Thread Marko Rauhamaa
Christopher Allan Webber : > ((name . "buttercup") >(age . 6) >(animal . "horse") >(food . #("carrot" "oats")) >(mood-noises > ("frustrated" . "haurrrfff") > ("happy" . "negh") > ("angry" . "*SNORT*"))) > > I'd be open to the change... if we're going to do the c

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

2017-04-25 Thread Christopher Allan Webber
Marko Rauhamaa writes: > 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

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

2017-04-25 Thread Christopher Allan Webber
Mark Oteiza writes: > Christopher Allan Webber writes: > >> Hello all! I'm happy to announce the first public release of >> guile-sjson! > > Congratulations! > >> What's guile-sjson? Well, it's basically the previous work David >> Thompson did on (ice-9 json), but since that seemed to sit witho

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

2017-04-25 Thread Thompson, David
Hey, On Mon, Apr 24, 2017 at 1:01 PM, Christopher Allan Webber wrote: > > What do people think? I'm struggling with deciding what's the right > thing for my own code, but leaning towards "we shouldn't use the ? > suffix for just boolean values". My convention is that anything that evaluates to

What's need when I distribute C/C++ GUI app with guile on MacOS or MS Windows?

2017-04-25 Thread Park SungMin
What's need when I distribute C/C++ GUI app with guile on MacOS or MS Windows (for enduser, not developer)? I just want one bundle(executable + all runtime resources) for distribute. maybe, I need libguile and all used module...right? 1. but how check that all used module(and all dependent mod

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

2017-04-25 Thread Neil Jerram
I'm also not sure. In the past I've written code with an 'xxx?' variable, and then added a procedure to set it, giving 'set-xxx?!' - which is not exactly elegant. Also I'm not sure it's best practice to have many variables/attributes/parameters with boolean values, as this can lead to code t

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

2017-04-25 Thread Panicz Maciej Godek
Hi :) 2017-04-24 19:01 GMT+02:00 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

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

2017-04-25 Thread Paul
On 04/25/2017 11:50 AM, Jan Wedekind wrote: What do people think? I'm struggling with deciding what's the right thing for my own code, but leaning towards "we shouldn't use the ? suffix for just boolean values". I like using the '?' suffix only for predicates. I often use 'is-' prefix for b

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

2017-04-25 Thread Jan Wedekind
In Ruby ...? is used for methods returning boolean. E.g. 5.even?. Boolean variables are not sufficed. E.g. x = 5.even? The method call "even?" is the question. "x" is the answer. On 25. April 2017 04:43:23 GMT+00:00, Alex Vong wrote: >Good question! I can't decide as well. I want to know how pe

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

2017-04-25 Thread Mark Oteiza
Christopher Allan Webber writes: > Hello all! I'm happy to announce the first public release of > guile-sjson! Congratulations! > 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 a

Two variables that are linked together by an heuristic (constraint programming?)

2017-04-25 Thread Amirouche Boubekki
Héllo! In the editor I am working on, two variables are linked together. That is the value of one depends on the value of the other. There is a `view` position a cons of integers x and y which denotes the top left position of the editor window in the buffer. Basically, it defines the top left po