Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The Scheme version is not worthy of a blog post:

  (define-syntax until
    (syntax-rules ()
      ((until pred expr ...)
       (let loop ()
         (if (not pred)
	     (begin
	       (begin expr ...)
	       (loop)))))))
In dialects with WHEN syntax (mzcheme, Kawa, probably many others) it's even more concise:

  (define-syntax until
    (syntax-rules ()
      ((until pred expr ...)
       (let loop ()
	 (when (not pred)
	       (begin expr ...)
	       (loop))))))


Do you use any lisp code in ourdoings?


Yes, it's mostly Kawa Scheme, adapted for the web. You might notice http://brl.codesimply.net/ and http://ourdoings.com/ have the same IP address.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: