Giter Club home page Giter Club logo

Comments (9)

borkdude avatar borkdude commented on June 11, 2024 1

I would prefer that as a function rather than a macro:

(resolved-symbol 'my.ns/my-fn)

This makes it more composeable.

from grasp.

borkdude avatar borkdude commented on June 11, 2024 1

OK, let's add rsym but as a function.

from grasp.

holyjak avatar holyjak commented on June 11, 2024

I gather rsym is to cryptic :) But if we have both resolved-symbol and resolve-symbol, don't we expose the user to a great riks of mixing them up?

from grasp.

borkdude avatar borkdude commented on June 11, 2024

Sorry, I missed the part about list. Why do you need this? Often I think list? should just be seq? instead, since list? doesn't match on (cons 1 [1 2 3]) for example.

from grasp.

holyjak avatar holyjak commented on June 11, 2024

Maybe I don't? The idea was that function calls in Clojure are calls so it would be natural to search for (list (rsym 'myns/myfn int?)). But I guess seq works just as well and makes list unnecessary. A proper clojure dev should know that 😅

from grasp.

borkdude avatar borkdude commented on June 11, 2024

I recommend using seq? and to forget about list? forever :).

from grasp.

holyjak avatar holyjak commented on June 11, 2024

Well, in this particular case I really, really want a list because fn calls cannot be lazy sequences :-)

But seq works fine it I guess it is worthwile keeping the api small

from grasp.

borkdude avatar borkdude commented on June 11, 2024

The parsed s-expression is usually not a lazy sequence, but it can be a Cons because of macro-expansions.

from grasp.

holyjak avatar holyjak commented on June 11, 2024

Ah

from grasp.

Related Issues (20)

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.