Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Create a Record class that wraps the Map<String, Object> #64

Closed
fsteeg opened this issue Nov 5, 2021 · 2 comments · Fixed by #72
Closed

Create a Record class that wraps the Map<String, Object> #64

fsteeg opened this issue Nov 5, 2021 · 2 comments · Fixed by #72
Assignees

Comments

@fsteeg
Copy link
Member

fsteeg commented Nov 5, 2021

Came up in #60 (review).

@blackwinter
Copy link
Member

Copying previous discussion for better overview:


I would suggest to create a Record class that wraps the Map<String, Object> instead of "littering" Metafix and FixMethod with static methods. But that can happen later. (Maybe it would be an opportunity for me to get more acquainted with the new code.)

Originally posted by @blackwinter in #60 (review)

@fsteeg
Copy link
Member Author

fsteeg commented Nov 10, 2021

No functional review (refactoring), code review: @fsteeg

blackwinter added a commit that referenced this issue Nov 12, 2021
Still exposes internal map during transitional period.
blackwinter added a commit that referenced this issue Nov 12, 2021
Intended as a shared type for records and map values.
blackwinter added a commit that referenced this issue Nov 12, 2021
Thus no longer exposing internal map.
blackwinter added a commit that referenced this issue Nov 15, 2021
Still exposes internal map during transitional period.
blackwinter added a commit that referenced this issue Nov 15, 2021
Intended as a shared type for records and map values.
blackwinter added a commit that referenced this issue Nov 15, 2021
Thus no longer exposing internal map.
blackwinter added a commit that referenced this issue Nov 15, 2021
In preparation of introducing a shared type for record values.
blackwinter added a commit that referenced this issue Nov 16, 2021
Obviates the need for `instanceof` checks and unchecked casts.

A `Value` is a container/wrapper for either

- an `Array` (which in turn is a wrapper for `List<Value>`), or
- a `Hash` (which in turn is a wrapper for `Map<String, Value>`), or
- a `String` (which is the terminal type)
blackwinter added a commit that referenced this issue Nov 16, 2021
Obviates the need for `instanceof` checks and unchecked casts.

A `Value` is a container/wrapper for either

- an `Array` (which in turn is a wrapper for `List<Value>`), or
- a `Hash` (which in turn is a wrapper for `Map<String, Value>`), or
- a `String` (which is the terminal type)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants