Giter Site home page Giter Site logo

Comments (3)

tokenrove avatar tokenrove commented on August 22, 2024

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.

fourier avatar fourier commented on August 22, 2024

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.

tokenrove avatar tokenrove commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.