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

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

Conversation

Notices

  1. Embed this notice
    Lizzie Crowdagger :neocat_floof_flag_trans: (crowdagger@corneill.es)'s status on Saturday, 18-Jan-2025 02:27:08 JST Lizzie Crowdagger :neocat_floof_flag_trans: Lizzie Crowdagger :neocat_floof_flag_trans:

    Je lis le R7RS (pour Scheme) et je suis choquée et déçue que 'if' soit une primitive du langage et pas une macro

    In conversation about 4 months ago from corneill.es permalink
    • Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Lizzie Crowdagger :neocat_floof_flag_trans: (crowdagger@corneill.es)'s status on Saturday, 18-Jan-2025 04:53:10 JST Lizzie Crowdagger :neocat_floof_flag_trans: Lizzie Crowdagger :neocat_floof_flag_trans:
      in reply to
      • Christine Lemmer-Webber 🌀

      Si vous voulez une introduction à Scheme et que vous parlez anglais je vous recommande au passage cette vidéo (enregistrement d'un stream) de la merveilleuse @cwebber https://www.youtube.com/watch?v=DDROSL-gGOo

      In conversation about 4 months ago permalink

      Attachments

      1. Unlock Lisp / Scheme's magic: beginner to Scheme-in-Scheme in one hour
        from Christine Lemmer-Webber
        Want to unlock the full power of Lisp/Scheme but don't know where to start? In one hour we'll go from NO background to Scheme written in Scheme!This is the ...
    • 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 permalink
      Ludovic Courtès repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • 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.