chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] what does "##core#check" do?


From: Peter Bex
Subject: Re: [Chicken-users] what does "##core#check" do?
Date: Tue, 14 May 2019 08:41:08 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Tue, May 14, 2019 at 07:05:41AM +0200, Marco Maggi wrote:
> Ciao,
> 
>   in the "record-variants" egg there is:
> 
>    (##core#check (##sys#check-structure x ',original-name))
> 
> I understand what:
> 
>    (##sys#check-structure x ',original-name)
> 
> does,  but  what  is  the  "##core#check" for?   In  other  code  I  see
> "##sys#check-structure" uses without it.

It's an annotation in the core language (see core.scm) that causes the
expression inside to be eliminated in unsafe mode.  In normal mode, it
will just walk the expression as if the ##core#check wasn't there.

Cheers,
Peter

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]