Skip to content

Support proposition decoding in optics #63

@fogfish

Description

@fogfish
type reqThread struct {
	author core.AccountID
	story  core.StoryID
	user   core.AccountID
	bias   geohash.GeoHash
}

author, account, user, bias := µ.Optics4[reqThread, core.AccountID, core.StoryID, core.AccountID, geohash.GeoHash]("author", "story", "user", "bias")

Here, the request consists of two core.AccountID. Optics would not support it without hints - "author", "story", "user", "bias".
It would be perfect if it behave like real hseq core.AccountID :: core.StoryID :: core.AccountID :: geohash.GeoHash mapped by the proposition of the type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions