Tim Marston

Results 14 comments of Tim Marston

Tests now pass as well as they do without this patch! (i.e., diff of ert-runner is identical, with and without these changes).

I implemented a load of my own code to achieve this. Although I'd quite happily delete my hard work to have it supported by smartparens! The logic I ended up...

@Fuco1 it is currently implemented in terms of a loadable extension, but I would be happy to rework it in to a branch. I could do with cleaning up a...

Yes, it does. Also Coq (also supported by rg) uses .v files. But if this is just about file selection, does it matter? Can't rg just support all three? 🤔

Note: assigning an optional directly works ok: ```v foo := Foo{ x: ?string("hi") // works } ```

Seems the code to handle the or-blocks broke in https://github.com/vlang/v/commit/6944d542577d0cd6b4f95abf5abd6da49a9473d5. Before this commit: ```c if (a.state != 0) { IError err = a.err; *(string*) a.data = _SLIT("test"); } foo.x =...

I thought the plan was to eventually allow this: ```v if a { assert a == "hi" // smartcast: a is a string } ``` So maybe, the correct code...

After discussion on discord, updated description: * This should not be allowed by the V compiler. * `a` needs upwrapping (to a string) before comparison. * Should be a V...