diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2022-04-28 16:04:06 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2022-04-28 16:04:06 +0200 |
| commit | 1e1d49388bbd47780889b88b8c8e92e5ceaad854 (patch) | |
| tree | d08026ea0b6e1dbc6798e08e5f26580e06e12b1f | |
| parent | 22278a95474ccd665f84c16aa8760534ced9b150 (diff) | |
Mention the l package
| -rw-r--r-- | README.md | 21 | ||||
| -rw-r--r-- | llama.el | 9 |
2 files changed, 22 insertions, 8 deletions
@@ -1,15 +1,24 @@ -Anonymous function literals for Emacs-Lisp -========================================== +Compact syntax for short lambdas. -Unfortunately anonymous function literals won't be added to Emacs -anytime soon. The arguments as to why we would like to have that -has been layed out convincingly but the proposal has been rejected -anyway. +Unfortunately compact syntax for short `lambda`s won't be added to +Emacs anytime soon. IMO the arguments as to why we would like to have +that has been layed out convincingly but the proposal has been +rejected anyway. Several packages exist that implement anonymous function literals, but until now they all either are waiting for a patch to the C part be merged into Emacs, or they depart too far from the ideal syntax. +This package is another attempt. + +> **Update:** I have come up with a second syntax, which does not put +> anything *before* the opening parenthesis and looks like `(l'foo %)`. +> Unlike with my original `llama` idea I am no longer suggesting making +> it look like some character(s) appear before the paren using font-lock +> or similar trickery (see below). If you so desire, then you could +> however use `prettify-symbols-mode` to display it as e.g. `(ƒ'foo +> %)`. This approach is implemented in [`l`](https://git.sr.ht/~tarsius/l). + In a stroke of luck I discovered a loophole that allows us to have almost the syntax that we want without having to convince anyone. @@ -1,6 +1,6 @@ ;;; llama.el --- Anonymous function literals -*- lexical-binding: t -*- -;; Copyright (C) 2020-2021 Jonas Bernoulli +;; Copyright (C) 2020-2022 Jonas Bernoulli ;; Authors: Jonas Bernoulli <jonas@bernoul.li> ;; URL: https://git.sr.ht/~tarsius/llama @@ -24,7 +24,12 @@ ;;; Commentary: -;; This package provides anonymous function literals for Emacs-Lisp. +;; This package implements compact syntax for short `lambda's, without +;; relying on a C patch to Emacs or adding an additional pair of +;; parentheses. + +;; [!] I have come up with another approach that does not put anything +;; [!] before the opening parenthesis: https://git.sr.ht/~tarsius/l. ;; Unfortunately anonymous function literals won't be added to Emacs ;; anytime soon. The arguments as to why we would like to have that |
