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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Karsten Johansson (ksaj@infosec.exchange)'s status on Thursday, 03-Apr-2025 17:27:06 JSTKarsten JohanssonKarsten Johansson
    • screwlisp
    • Alfred M. Szmidt

    Lisp sucks. Tell me what's wrong here:

    (DEFVAR x 0) ; GLOBAL BADNESS STAYS

    (DEFUN dO-StuFf (NUMBer)
    (LET ((rEsUlT 1))
    (DECLARE (SPECIAL X)) ; THIS IS LEGAL HERE
    (SETQ X NUMBER)
    (TAGBODY
    StaRT
    (IF (< X 1) (GO ENDz))
    (SETQ rEsUlT (* rEsUlT X))
    (SETQ x (- x 1)) ; NOTE: STILL USING GLOBAL x INSTEAD OF LOCAL X
    (GO StARt)
    ENDz)
    (pRiNt (lIsT 'FACtoRiAl-oF NUMBER 'iS rEsUlT))))

    (DEFUN nOW-dO-AlL ()
    (LET ((I 0))
    (LOOP
    (WHEN (> i 5) (RETURN))
    (Do-sTUFF i)
    (SETQ i (+ i 1)))))

    (nOW-dO-AlL)

    #commonlisp #lisp #sbcl #clisp @amszmidt @screwtape

    In conversationabout 3 months ago from infosec.exchangepermalink
  • 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.