Optionally allow duplicate field names in core records

* NEWS: Update.
* doc/ref/api-data.texi (Records): Update docs.
* module/ice-9/boot-9.scm (make-record-type): Add
  #:allow-duplicate-field-names? keyword argument.
  (record-accessor, record-modifier): Allow passing indexes to identify
  fields.
* module/rnrs/records/procedural.scm (make-record-type-descriptor):
  Allow duplicate field names.  Fixes #38611.
This commit is contained in:
Andy Wingo 2020-01-12 21:50:08 +01:00
commit 86a9f9a271
4 changed files with 48 additions and 18 deletions

7
NEWS
View file

@ -79,6 +79,13 @@ Somewhat embarrassingly, the R7RS support added earlier in 2.9 failed to
include an implementation of `define-library'. This oversight has been
corrected :)
** Optionally allow duplicate field names in core records
See the new #:allow-duplicate-field-names? keyword argument to
`make-record-type' in the manual, for more. This restores a needed
feature to R6RS records.
Changes in alpha 2.9.x (since the stable 2.2 series):