GithubHelp home page GithubHelp logo

Comments (5)

hdgarrood avatar hdgarrood commented on August 27, 2024 2

I don’t think we should make ST an indexed monad just to satisfy one use case which nobody seems interested in anyway. I think the use case of wanting to have a record where all the fields are mutable and performance is too much of a concern to just put the whole record in the Ref is probably too niche to deserve a spot in core, so my preference would be removing the whole module.

from purescript-record.

natefaubion avatar natefaubion commented on August 27, 2024

I have never had a use for it. However I could see using it with a Global region to have a record with mutable fields.

from purescript-record.

JordanMartinez avatar JordanMartinez commented on August 27, 2024

then it wouldn't be ST anymore either.

We could just make ST an indexed monad.

from purescript-record.

kritzcreek avatar kritzcreek commented on August 27, 2024

If the only good way to use this is with a Global region it should just work in Effect instead, I know I would've had a use for this a couple of times recently where handling a record full of Refs was a little annoying.

from purescript-record.

kl0tl avatar kl0tl commented on August 27, 2024

Ouch, that’s embarrassing, I didn’t even notice that there’s no way to add fields to a mutable record with the ST interface 🙈 I opened #77 to remove Record.ST.run.

from purescript-record.

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.