Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-30 Thread Aleix Conchillo Flaqué
On Mon, Jan 30, 2023 at 6:53 PM Maxime Devos wrote: > On 30-01-2023 20:56, Aleix Conchillo Flaqué wrote: > > [...] Maxime found the time to review a quite big PR and added a > > bunch of useful comments. Reviewing that PR took a lot of effort and I > > just felt better after fixing all the commen

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-30 Thread Maxime Devos
On 30-01-2023 20:56, Aleix Conchillo Flaqué wrote: [...] Maxime found the time to review a quite big PR and added a bunch of useful comments. Reviewing that PR took a lot of effort and I just felt better after fixing all the comments made. I was even surprised he (I'm assuming this pronoun) did

Re: [PATCH v1 1/6] docs/match: add pattern matching examples + CoC

2023-01-30 Thread Maxime Devos
On 30-01-2023 01:49, Blake Shaw wrote: Hi Maxime, I have to be perfectly up-front: past interactions like this, which appear to me as more or less a means to gatekeep the contribution process by tying up others' time in disagreement It is not. over what is ultimately minutiae (I'll get int

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-30 Thread Aleix Conchillo Flaqué
On Mon, Jan 30, 2023 at 11:56 AM Aleix Conchillo Flaqué < aconchi...@gmail.com> wrote: > Hi! > > On Sun, Jan 29, 2023 at 4:50 PM Blake Shaw wrote: > >> >> And there's more, its a pattern; I dont know if you troll everyone like >> this or if I represent something you feel opposed to, but I do know

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-30 Thread Aleix Conchillo Flaqué
Hi! On Sun, Jan 29, 2023 at 4:50 PM Blake Shaw wrote: > > And there's more, its a pattern; I dont know if you troll everyone like > this or if I represent something you feel opposed to, but I do know that it > was enough for me to become allergic to Guile/Guix community until I > started hanging

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-29 Thread Blake Shaw
Hi Maxime, I have to be perfectly up-front: past interactions like this, which appear to me as more or less a means to gatekeep the contribution process by tying up others' time in disagreement over what is ultimately minutiae (I'll get into specifics momentarily), ultimately drove me away from co

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-29 Thread Maxime Devos
On 29-01-2023 04:04, Blake Shaw wrote: On 26-01-2023 19:57, Blake Shaw wrote: >   @example > -(match lst > -  (((heads tails ...) ...) > -   heads)) > +(match '(((a b c) e f g) 1 2 3) > +  (((head ...) tails ...) > +   `(,@tails ,head))) > +@result

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-29 Thread Maxime Devos
On 29-01-2023 03:40, Blake Shaw wrote: Hi Maxime, Did you watch my talk from Guix days? I read the text in the talk, but mostly skipped the speech. There I detailed that the goal would be to move from what is painfully obvious, gradually building up in chunks and peices. That is what is h

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-28 Thread randomlooser
Il giorno sab, 28/01/2023 alle 20.10 +0100, randomloo...@riseup.net ha scritto: > Il giorno sab, 28/01/2023 alle 14.18 +0100, Maxime Devos ha scritto: > > > > > > > +(define (english-base-ten->number name) > > > +  (match name > > > +    ('zero   0) > > > +    ('one    1) > > > +    ('two    2) >

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-28 Thread randomlooser
Il giorno sab, 28/01/2023 alle 14.18 +0100, Maxime Devos ha scritto: > > > > +(define (english-base-ten->number name) > > +  (match name > > +    ('zero   0) > > +    ('one    1) > > +    ('two    2) > > +    ('three  3) > > +    ('four   4) > > +    ('five   5) > > +    ('six    6) > > +    ('se

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-28 Thread Maxime Devos
On 26-01-2023 19:57, Blake Shaw wrote: @example -(match lst - (((heads tails ...) ...) - heads)) +(match '(((a b c) e f g) 1 2 3) + (((head ...) tails ...) + `(,@tails ,head))) +@result{} (1 2 3 ((a b c) e f g)) @end example Contrary to the commit message, this isn't an addition of

Re: [PATCH v1 1/6] docs/match: add pattern matching examples

2023-01-28 Thread Maxime Devos
On 26-01-2023 19:57, Blake Shaw wrote: +A pattern matcher does precisely what the name implies: it matches +some arbitrary pattern, and returns some result accordingly. It doesn't need to return anything -- while functional style is common in Guile, imperative is still possible. It can retu