Skip to content

Conversation

samth
Copy link
Member

@samth samth commented Aug 11, 2025

This does not apply an expected type to the actual function body,
it just gives a type to the function when referred to recursively.

This addresses a problem with inference for let loop in lambda as
the argument to thread now that thread is a keyword function and
therefore lifts its arguments to a let ahead of the function.

Fixing the relevant problem also requires improving the type of thread.

Copy link

@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 7 files in this pull request and found no issues.

@samth samth force-pushed the fix/kw-expected-types branch from 972e88f to 6d238b0 Compare August 12, 2025 14:35
Copy link

@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 7 files in this pull request and found no issues.

@samth samth force-pushed the fix/kw-expected-types branch from 6d238b0 to e1ba235 Compare August 12, 2025 15:37
This does not apply an expected type to the actual function body,
it just gives a type to the function when referred to recursively.

This addresses a problem with inference for let loop in lambda as
the argument to `thread` now that `thread` is a keyword function and
therefore lifts its arguments to a `let` ahead of the function.

Fixing the relevant problem also requires improving the type of `thread`.
@samth samth force-pushed the fix/kw-expected-types branch from e1ba235 to 8822efa Compare August 12, 2025 15:55
Copy link

@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 7 files in this pull request and found no issues.

@samth samth merged commit ef1bcec into racket:master Aug 12, 2025
3 checks passed
@samth samth deleted the fix/kw-expected-types branch August 12, 2025 16:39
Copy link

@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 8 files in this pull request and found no issues.

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.

1 participant