GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Lizzie Crowdagger :neocat_floof_flag_trans: (crowdagger@corneill.es)'s status on Saturday, 18-Jan-2025 04:53:11 JST

  1. Embed this notice
    Lizzie Crowdagger :neocat_floof_flag_trans: (crowdagger@corneill.es)'s status on Saturday, 18-Jan-2025 04:53:11 JST Lizzie Crowdagger :neocat_floof_flag_trans: Lizzie Crowdagger :neocat_floof_flag_trans:
    in reply to

    Du coup j'ai eu un doute mais oui c'est possible (j'ai pas réussi à le faire avec defmacro parce que skill issues)

    (define true (lambda (t f)
    t))
    (define false (lambda (t f)
    f))

    (define-syntax if
    (syntax-rules ()
    ((_ pred t f)
    ((lambda (a b)
    ((pred a b)))
    (lambda () t) (lambda () f)))))

    (if true (display "True\n") (display "False"))
    ; N'affiche que "True", la branche else n'est pas évaluée

    (if false (display "True\n") (display "False"))
    ; Idem pour "False"
    In conversation about 4 months ago from gnusocial.jp permalink

Feeds

  • Activity Streams
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.