Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

feature: record syntax ideas / scopedlabels #14

Closed
mhuesch opened this issue Nov 9, 2020 · 1 comment
Closed

feature: record syntax ideas / scopedlabels #14

mhuesch opened this issue Nov 9, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mhuesch
Copy link
Owner

mhuesch commented Nov 9, 2020

extensible records would be 🔥

we currently have product types, with Pair (2-tuples).

the approach outlined in this paper might lead to a nice mapping between underlying Rust structs (other data in Holochain) and types in the poly-rs language.

a possible sketch.
. would be a the field accessor syntax, in keeping with Lisp-y style.

((lam [r]
    (. r field_x))
 {[field_x 1]
  [field_y 2]
  opt_expr_for_record_to_extend})

misc related-ish links

https://gist.github.com/nikita-volkov/6977841
https://www.reddit.com/r/haskell/comments/1oicmu/anonymous_records_a_solution_to_the_problems_of/ (<- some criticism of the approach ⬆️)

maybe kinda related?
https://gist.github.com/Icelandjack/6b9745d30cc57900b51269942c3cd504

@mhuesch mhuesch added the enhancement New feature or request label Nov 9, 2020
@mhuesch mhuesch changed the title record syntax ideas / scopedlabels feature: record syntax ideas / scopedlabels Nov 9, 2020
@mhuesch
Copy link
Owner Author

mhuesch commented Apr 13, 2021

migrated to neighbour-hoods/rep_lang#19.

@mhuesch mhuesch closed this as completed Apr 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant