• SRFI 197: Threading Macros

    From Arthur A. Gleckler@21:1/5 to All on Mon Jun 8 20:41:01 2020
    Scheme Request for Implementation 197,
    "Threading Macros,"
    by Adam Nelson,
    is now available for discussion.

    Its draft and an archive of the ongoing discussion are available at <https://srfi.schemers.org/srfi-197/>.

    You can join the discussion of the draft by filling out the subscription
    form on that page.

    You can contribute a message to the discussion by sending it to <srfi-197@srfi.schemers.org>.

    Here's the abstract:

    Threading macros provide a simple, readable way to write deeply-nested
    expressions. Also known as "arrows", these macros were first
    introduced in Clojure, and are a key feature of that language. With
    threading macros, expressions like
    (append (cons (assoc x y) c) '(a b))
    can be written as a sequence of operations:
    (-> x (assoc y) (cons c) (append '(a b)).

    Regards,


    SRFI Editor

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arthur A. Gleckler@21:1/5 to Paul Rubin on Mon Jun 8 22:07:56 2020
    On Monday, June 8, 2020 at 9:59:04 PM UTC-7, Paul Rubin wrote:

    Having currying and function composition primitives might be nicer.

    You're welcome to submit a SRFI for those.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul Rubin@21:1/5 to Arthur A. Gleckler on Mon Jun 8 21:59:02 2020
    "Arthur A. Gleckler" <*@speechcode.com> writes:
    (-> x (assoc y) (cons c) (append '(a b)).

    Having currying and function composition primitives might be nicer.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)