Kristian Larsson

Results 275 comments of Kristian Larsson

I have seen this error before (and worked around it)... but always presumed it was a type error. I just noticed this is actually a syntax error and not a...

No, we cannot, not right now at least...

@nordlander do you know how to fix this? Like if you know exactly what the problem is and how you think it should be fixed? It seems to me that...

@nordlander can we track a dict key as a narrowed expression? ```python if isinstance(foo["hello"]): blargh = foo["hello"] ```

Sorry, I don't know what happened there, I just seem to have left out parts of the example. Here's a fixed and more complete one: ```python foo = { "hello":...

@nordlander and I spoke about this separately and yes, dict key accesses like that should act the same way, we can narrow it. I suppose it's general, so we can...

@nordlander right, but it is still based on like the AST, so whitespace or like which quoting character is used is irrelevant, right? Like this, (note " vs '): ```...

I would like to make it possible to use this like a guard statement. Swift has an explicit guard statement, which is basically like an `if` but with an early...

Hmm, or maybe we should do the zig trick with a `build.act` instead?

I closed this through #2358 even though #2358 only implements new project discovery based on Build.act & build.act.json. The spiritual successor for the other ideas in this issue is #2359.