Chayim Refael Friedman

Results 432 comments of Chayim Refael Friedman

Don't we insert a dummy identifier at the cursor position?

Hmm... I often use expand selection when I need for example to wrap the expression in parentheses, so I want a valid expression to be selected.

`Option` projection can be almost as easy with `try` blocks, and given that there is a branch there I feel like it suits Rust model of showing costs explicitly better.

@kivimango That what I've thought too. Too notes, though: 1. `.fullscreen(yes)`????? You probably meant `.fullscreen(true)`... 2. I think `fullscreen()` is an ambiguous, because it also means fullscreen window (i.e. without...

Will it allow adding properties, since anonymous types do not have declared type like records?

Right. That seems like VB's implicit variable declaration, which is known to be error-prone...

I'd like to work on that. @rhysd is there any format of settings you think is best? (RON, JSON, TOML...)

There's a TODO for that: https://github.com/wren-lang/wren/blob/dd1e8a00db5e0c9eb9f95dd73ebdae44904cd29d/src/vm/wren_compiler.c#L2476-L2477

Although I really like complicated pattern matching, I don't think it's a good fit for Wren, and even not generally for dynamic languages (although Python will have them in 3.10)....

I think the `String` problem is just a symptom that this operator is problematic: is serves too many purposes. If it's the "contained in" operator, then it should refer `String.contains()`,...