guix-devel
[Top][All Lists]
Advanced

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

is using eval good style in guile?(was: [PATCH] improve nginx-service)


From: Hartmut Goebel
Subject: is using eval good style in guile?(was: [PATCH] improve nginx-service)
Date: Fri, 25 Nov 2016 12:46:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Am 25.11.2016 um 11:53 schrieb Clément Lassieur:
> I think you are looking for "eval".
>
> (define (list->define-configuration stem fields)
>   (eval `(define-configuration ,stem ,@fields) (current-module)))

I'm curious: In other programming languages, using eval is regarded bad
programming style. Is this different in guile?

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog:
http://www.goebel-consult.de/blog/vortrag-digitalen-selbstverteidigung-fur-unternehmen

Kolumne:
http://www.cissp-gefluester.de/2012-04-compliance-bringt-keine-sicherheit


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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