Add `mergeFlipped`
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Bereich
- backend
Rechercherichtung
The issue proposes mergeFlipped and the // operator for purescript-record, with examples but no source files or tests named. Start by reading the linked PR #83 and the package’s existing record merge implementation and tests. Done means the proposed operation and operator work for the shown record combinations and are covered by tests.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Add mergeFlipped and an infix operator //
As a user I'm typically more thinking in terms of mergeFlipped than merge, as I want to overwrite a record with some new fields. E.g. in Typescript I can do
const newRecord = { ...otherRecord, more: 23 }
and in dhall // is avaiable as a mergeFlipped operator:
{ home = "/home/bill"
, privateKey = "/home/bill/.ssh/id_ed25519"
, publicKey = "/home/blil/.ssh/id_ed25519.pub"
} // { home = "/home/john" }
So in Purescript I would also like to do the following and I think it makes for a nice addition to purescript-record:
person :: { age :: Int
, firstName :: Maybe String
, professional :: String
}
person =
{ firstName: "John", professional: true } //
{ professional: "Software Engineer", age: 58 } //
{ firstName: Just "Mike" }
I have created a PR to illustrate this #83
- Vorherrschende Sprache
- PureScript
- Sterne
- 68
- Forks
- 33
- Ø Merge
- 2 T. 23 Std.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus purescript/purescript-record
-
Thoughts on replacing Proxy with VTA?Evtl. vergeben @pete-murphy hat das vor 1043 Tagen übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 10/100
purescript/purescript-record#85 · 3 Kommentare · 2 Reaktionen ·
-
type: documentation
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
purescript/purescript-record#49 · 7 Kommentare ·
-
status: needs more info
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
purescript/purescript-record#41 · 2 Kommentare · 1 Reaktion ·
-
pick functionOffenpurs-0.15 type: breaking change
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
purescript/purescript-record#5 · 6 Kommentare ·
Alle Issues in purescript/purescript-record
Ähnliche Issues
-
ManageSieve proxy: a backend's NO/BYE greeting is skipped as a capability line and reported as EOFOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Mend: dependency security vulnerability
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
ManageIQ/manageiq-pods#1476 ·
Maintainer antworten meist innerhalb von 1 Tag
-
mcp: typed tool handlers lose wrapped JSON-RPC errorsEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
modelcontextprotocol/go-sdk#1529 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
FinanceFlash/unvibecode#818 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100