Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record - based only on existing native data types #9

Open
2 tasks
booch opened this issue Apr 21, 2021 · 0 comments
Open
2 tasks

Record - based only on existing native data types #9

booch opened this issue Apr 21, 2021 · 0 comments
Labels
feature New feature

Comments

@booch
Copy link
Member

booch commented Apr 21, 2021

  • create constructor for the record type that gets created
  • create accessor functions for properties

Proposed syntax (for now):

MyStruct := Record("field1", "field2")
ms := MyStruct(1, 2)
ms.field1()  # NOTE: the parens will be required for now.
ms.field2()  # NOTE: the parens will be required for now.
@booch booch added the feature New feature label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant