Skip to content

Conversation

@sfkleach
Copy link
Member

@sfkleach sfkleach commented Sep 5, 2021

This is draft pull request that introduces dict objects, which are tuples with named fields. This is an important feature in modern programming languages that Pop-11 will significantly benefit from. Poplog already has properties (see REF PROPS) but these are suitable for large hash-tables.

At the same time I introduce a low-level mechanism for closures with named fields (frozvals) rather than positionally indexed fields. This mechanism will be used in a future pull-request to add default-named arguments to Pop-11 in an elegant fashion.

TO DO:

  • compile_mode :pop11 +strict; section; ... endsection;
  • Document the syntax for dicts
  • Document the $ syntax
  • Add dict concatenation (implement and doc)

@sfkleach sfkleach changed the title lib dict DRAFT - lib dict Sep 5, 2021
@sfkleach sfkleach force-pushed the getpoplog10_lib_dict branch 2 times, most recently from db895d9 to 5f5fde9 Compare September 7, 2021 22:16
@sfkleach sfkleach force-pushed the getpoplog10_lib_dict branch from 5f5fde9 to 26d127c Compare December 6, 2021 07:58
@sfkleach sfkleach force-pushed the getpoplog10_lib_dict branch from 26d127c to be56cb8 Compare March 5, 2022 22:44
@sfkleach sfkleach marked this pull request as draft September 4, 2022 10:57
@sfkleach sfkleach changed the title DRAFT - lib dict lib dict Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants