Oscar Spencer

Results 73 comments of Oscar Spencer

We could totally just implement this as `let (|>) = (a, b) => b(a)`, but we should probably have an optimization for it if we do that. I love the...

I'm actually up to this right now as I'm implementing `curry`! My bad for not assigning this to myself!

Yeah, we'll definitely want a way to be able to do this. I imagine that we'll have a `Printf` library, though there are some considerations to be made there. I'll...

@cullophid There's no technical reason why the keyword is necessary. We feel that when reading code in languages that allow partial application, it's not at all obvious that a function...

Thanks for the feedback! 😄 In the cases where you're familiar with the functions being partially applied, I completely agree with you. If you're not familiar with the functions, say,...

Once this is completed, let's resolve this: https://github.com/grain-lang/grain/pull/540#discussion_r589965129

I think we need to go ahead and handle the cases for completion a little better—going ahead and looking for the `let ... =` for value completions and `type ......

My apologies, I thought there was a component-level `(start)` as opposed to core wasm's, but I might have been mistaken. What I was hoping for is exactly what you mentioned.