Git Product home page Git Product logo

Comments (6)

vilterp avatar vilterp commented on July 19, 2024

After giving this a once-over, it looks like it uses Tasks appropriately, and that the native code is necessary (since Firebase.js seems to do a lot of special stuff). Not sure if I have the authority to approve this, but it looks good to me.

from package.elm-lang.org.

laszlopandy avatar laszlopandy commented on July 19, 2024

The API looks a bit awkward to use. But I believe having these primitives is necessary if we want someone to build a nicer API on top of it.

I approve native use for this library.
We need a third vote to add it to the whitelist: @evancz @rtfeldman

from package.elm-lang.org.

rtfeldman avatar rtfeldman commented on July 19, 2024

There's a lot going on here, but I can't identify any specific problems. Let's add it!

I approve native use for this library.

from package.elm-lang.org.

evancz avatar evancz commented on July 19, 2024

Is it possible for any facts about Reference to change dynamically? If so, I think the following functions would have issues:

key : Reference -> String
toUrl : Reference -> String
location : Reference -> Location

I don't understand things well enough to totally understand if Reference is "immutable" or not. Generally speaking, if you want to know something about a value that can mutate, the result needs to be a task.

Also, the discussion about removing record extension and deletion ended with those things getting removed. So the part of the API using { r - x | y = abc } is all going to stop working with 0.16. I don't know if that is a blocker, but it is certainly a big change that'd need to happen here. Reviewers, what do you think of this?

from package.elm-lang.org.

ThomasWeiser avatar ThomasWeiser commented on July 19, 2024

Thanks for all the reviews!

@evancz: Yes, Reference is immutable, so the functions key, toUrl and location are pure.

About the API for query options: Yes, I will change it in the way discussed here to move away from record field addition/deletion and use union types instead. The necessary changes in native code will be limited to the function queryOrderAndFilter, which translates the query options from their Elm representation to the native Firebase representation.

from package.elm-lang.org.

evancz avatar evancz commented on July 19, 2024

Alright, thanks everyone for reviewing here :)

@ThomasWeiser, you are on the whitelist now, you should be able to put it in the catalog now!

from package.elm-lang.org.

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.