Avoid partial record accessors #27
Labels
No labels
ActivityPub
advanced features
basic functionality
bug
DHT
evaluation
refactoring
security
test case
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: schmittlauch/Hash2Pub#27
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Record types with multiple constructors, where some accessor functions only work on some of the constructed values, can fail at runtime: Using the accessor function on a value not holding that attribute throws a
RecSelError
exception.A better design is to avoid partial records at all.
Idea for refactoring
ActionPayload
:FediChordMessage