Hello,
> On Thu, Jul 21, 2016 at 05:52:43PM +0200, Ricardo Wurmus wrote:
>> > - the comma operator
>> > - the backquote operator
>> > - the quote operator
>> > - the arobase operator (is it for list unpacking ?)
>> These are all about list quoting.
>
> very nice explanations!
Yep, I understood th
Hello Ricardo,
On Thu, Jul 21, 2016 at 05:52:43PM +0200, Ricardo Wurmus wrote:
> > - the comma operator
> > - the backquote operator
> > - the quote operator
> > - the arobase operator (is it for list unpacking ?)
> These are all about list quoting.
very nice explanations! I wonder whether this s
>> Those additional examples would have been for:
>> https://www.gnu.org/software/guile/manual/guile.html#Expression-Syntax
>> and not for the guix manual...
>
> Ah OK, done:
>
>
> http://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=141e390b596bfb6464f4d692381232e974de8783
Great,
Vincent Legoll skribis:
>>> 3 - I'd add the following to (unquote-splicing expr):
>>>
>>> `(1 ,x 4) ⇒ (1 (2 3) 4)
>>>
>>> to better demonstrate the effect of splicing
>>>
>>> and to (unquote expr) :
>>>
>>> `(1 2 (* 9 9) 3 4) ⇒ (1 2 (* 9 9) 3 4)
>>
>> I’d prefer to avoid duplication with th
> I have no control over search engines. :-)
Yep, that was just a lame excuse, sorry...
;-)
>> 3 - I'd add the following to (unquote-splicing expr):
>>
>> `(1 ,x 4) ⇒ (1 (2 3) 4)
>>
>> to better demonstrate the effect of splicing
>>
>> and to (unquote expr) :
>>
>> `(1 2 (* 9 9) 3 4) ⇒ (1
Vincent Legoll skribis:
> quick ideas:
>
> 1 - the concept index has those: ! # ( . / maybe add ` ' , ,@ with
> their aliases / long names alongside (quote, quasiquote, unquote,
> unquote-splicing)
Good idea.
> 2 - they are well hidden in :
>
> The Guile Reference Manual
> API Reference
> Readi
>> A question remains, why do the configure flags need to be a quoted list ?
>
> It’s a list of arguments that gets passed to a function down the road.
but as the list of arguments is already in a quoted list, it is quoted and not
interpreted here.
'(toto (titi)) => (toto (titi))
and not an erro
Vincent Legoll skribis:
> Just to see if I understood properly...
>
> In the hello.scm example, there is :
>
> (arguments `(#:configure-flags '("--enable-silent-rules")))
>
> 1 - can the quasiquote be replaced by a regular quote, because
> unquote is not used ?
Yes.
> A question remains, why do
Vincent Legoll writes:
> The big problem with the abbreviated forms is that they're not easily
> googlable, if I knew their long names, I could've found them in online
> doc...
FYI, one of the best ways to find that information is to look it up in
the manual by index or by searching the entire m
Just to see if I understood properly...
In the hello.scm example, there is :
(arguments `(#:configure-flags '("--enable-silent-rules")))
1 - can the quasiquote be replaced by a regular quote, because
unquote is not used ?
I'd guess yes, now I'll try it...
So, it seems like we can change the q
> I'll go read it and see what I find missing
quick ideas:
1 - the concept index has those: ! # ( . / maybe add ` ' , ,@ with
their aliases / long names alongside (quote, quasiquote, unquote,
unquote-splicing)
2 - they are well hidden in :
The Guile Reference Manual
API Reference
Reading and Ev
Thanks Ludo,
> I would propose the patch below as a start. While it does not give
> detailed explanations, it provides terminology and pointers, in
> particular to this section of the Guile manual:
>
> https://www.gnu.org/software/guile/manual/html_node/Expression-Syntax.html
this is nice, the
Hello,
Thanks a lot, this is really helpful !
On Thu, Jul 21, 2016 at 5:52 PM, Ricardo Wurmus wrote:
>> - the comma operator
>> - the backquote operator
>> - the quote operator
>> - the arobase operator (is it for list unpacking ?)
>
> These are all about list quoting.
> This is code:
>
> (+
Hi Vincent,
Vincent Legoll skribis:
> I put this in a separate email, as it's becoming long...
>
> The packaging doc:
>
> https://www.gnu.org/software/guix/manual/guix.html#Defining-Packages
> is good, but still not enough for beginners.
>
> Essentially it's missing what is hidden behind "Withou
Hi Vincent,
> - the comma operator
> - the backquote operator
> - the quote operator
> - the arobase operator (is it for list unpacking ?)
These are all about list quoting.
This is code:
(+ 1 2 3)
It evaluates to 6.
This is quoted code (aka data):
'(+ 1 2 3)
It doesn’t get evaluated
I put this in a separate email, as it's becoming long...
The packaging doc:
https://www.gnu.org/software/guix/manual/guix.html#Defining-Packages
is good, but still not enough for beginners.
Essentially it's missing what is hidden behind "Without being a Scheme ..."
It wouldn't hurt to have the
16 matches
Mail list logo