Comments (5)
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.
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.
then it wouldn't be ST anymore either.
We could just make ST
an indexed monad.
from purescript-record.
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 Ref
s was a little annoying.
from purescript-record.
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)
- stack-safe Builder HOT 1
- unsafeModify HOT 1
- unsafeFreeze, unsafeThaw HOT 1
- deprecate verbose ST function names HOT 1
- modifySTRecord HOT 1
- Builder Profunctor instance HOT 3
- Builder.merge could be "safer" HOT 1
- insert and forall in record HOT 2
- Is equality on records order independent? HOT 1
- Record kind as type parameter? Bug? HOT 2
- Create a partially applied record constructor HOT 7
- Alternative `build` for building a record from scratch HOT 1
- Argument precedence of Record and Builder merging HOT 6
- Bug: `union` causes type confusion HOT 3
- Add type which represents and provide instances for homogeneous records HOT 2
- drop fields HOT 2
- Add new and run to Record.ST HOT 2
- Add `mergeFlipped` HOT 5
- Thoughts on replacing Proxy with VTA? 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 purescript-record.