Skip to content

Conversation

gdotdesign
Copy link
Member

This PR implements function captures, which is a way to have partial application:

fun add(a: Number, b: Number) : Number {
  a + b
}

// All of them are the same:
let addOne = (c: Number) { add(c, 1) }
let addOne = add(a: _, b: 1)
let addOne = add(_, 1)

@gdotdesign gdotdesign added the language Language feature label Mar 17, 2025
@gdotdesign gdotdesign added this to the 0.23.0 milestone Mar 17, 2025
@gdotdesign gdotdesign requested a review from Sija March 17, 2025 09:22
@gdotdesign gdotdesign self-assigned this Mar 17, 2025
@gdotdesign gdotdesign merged commit 706a330 into master Mar 17, 2025
3 checks passed
@gdotdesign gdotdesign deleted the function_captures branch March 17, 2025 12:12
@ryanprior
Copy link
Contributor

Can't wait 😤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Language feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants