Skip to content

fix: currying supported - #384

Merged
DeveloperC286 merged 1 commit into
mainfrom
claude/currying-parse-time-rejection-mlczd4
Sep 5, 2026
Merged

fix: currying supported#384
DeveloperC286 merged 1 commit into
mainfrom
claude/currying-parse-time-rejection-mlczd4

Conversation

@DeveloperC286

@DeveloperC286 DeveloperC286 commented Sep 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

parse_call_expression bailed unless the callee was an identifier or an
inlined function literal. Since the Pratt loop feeds the already parsed
Expression::Call back in when it meets the next opening round bracket,
this made curried calls such as f(1)(2) a syntax error.

Callability is a property of the evaluated object, not of the syntax, and
evaluate_call_expression already rejects it. Drop the parse time check so
any expression can be called, and let the evaluator report the error.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013zZALDKNGa3m1LZRNmvCVV
@DeveloperC286
DeveloperC286 force-pushed the claude/currying-parse-time-rejection-mlczd4 branch from 53a919d to 3d197d5 Compare September 5, 2026 10:53
@DeveloperC286 DeveloperC286 changed the title Move call expression validation from parser to evaluator fix: currying supported Sep 5, 2026
@DeveloperC286
DeveloperC286 merged commit 392fff3 into main Sep 5, 2026
23 of 24 checks passed
@DeveloperC286
DeveloperC286 deleted the claude/currying-parse-time-rejection-mlczd4 branch September 5, 2026 18:02
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