Skip to content

improve type definition of write-plist#1447

Merged
samth merged 1 commit intoracket:masterfrom
joergen7:master
Apr 24, 2025
Merged

improve type definition of write-plist#1447
samth merged 1 commit intoracket:masterfrom
joergen7:master

Conversation

@joergen7
Copy link
Copy Markdown
Contributor

The function write-plist has been typed

(-> Plist-Dict Output-Port Void)

However, the untyped version has a less restrictive contract on the first argument:

(plist-value? output-port? . -> . void?)

This pr relaxes the type of the first argument to Plist-Value, thus being

(-> Plist-Value Output-Port Void)

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resyntax analyzed 0 files in this pull request and found no issues.

@samth samth merged commit 2746b8e into racket:master Apr 24, 2025
5 checks passed
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