Comments (3)
Interesting suggestion! I would prefer not to put this in anaphora
and instead suggest the use of general lambda reader macros, for example: https://common-lisp.net/project/bese/docs/arnesi/html/api/function_005FIT.BESE.ARNESI_003A_003ASHARPL-READER.html
I know there are a few variants of this idea out there and perhaps one of them suits you.
I prefer this because it avoids cluttering anaphora
with an additional macro for every imaginable one-argument lambda function (for example, what about the :key
arguments on many sequence functions?). But if you can demonstrate a really compelling case where amapcar
is definitively better than something like (mapcar #L(+ it 1) '(1 2 3))
, please reopen this.
Thanks!
from anaphora.
One counter example for usage of reader macros is what they are providing problems if different packages provide the same reader macro prefix (like this #L ), also doesn't allow sexp-parsing tools (like code coverage in LispWorks) to do their job.
As for functions, probably the most used better to be implemented. As an example I can refer to "It" in Kotlin programming language where it is used really conveniently: https://kotlinlang.org/docs/reference/lambdas.html#it-implicit-name-of-a-single-parameter
from anaphora.
These are good points, although I don't feel they're that compelling (use named-readtables to manage many readtables, etc). However I'm just some guy. If you want to do this, feel free to fork anaphora.
from anaphora.
Related Issues (5)
- alambda macro HOT 2
- ssetf HOT 2
- Fix tests on clisp
- Feature request: Symbolic do/do* HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anaphora.