Oscar Spencer

Results 135 issues of Oscar Spencer

Fixes #1424 Thanks @alex-snezhko for the report!

I forget, do we have record spread syntax? `{ ...config, caseSensitive: caseSensitive }` (caseSensitive could also be punned) _Originally posted by @phated in https://github.com/grain-lang/grain/pull/680#discussion_r667370729_

syntax

This would add the ability to return early from a function. We've made the decision that if a function is to use a `return` statement, then all implicit returns must...

enhancement
compiler

The reverse application operator (`|>`) (sometimes called the pipeline operator) takes two arguments and applies the second argument to the first argument. The type signature of `|>` is `(a, a...

compiler

The `partial` operator allows you to partially apply a function. For example, look at this implementation of an add function: ```grain let add = (a, b) => a + b...

compiler

Probably using this: https://github.com/PanAeon/vscode-tmgrammar-test

With the change from indices to names for memory segments, it'd be great if we could query the name of a segment and get segments by name instead of index...

There are many cases, such as include statements, where a user might add/refactor into an alias that's the same as the name of the thing they're aliasing, e.g. `from "list"...

grainfmt