Dag Brattli
Dag Brattli
Tasks in .NET [are hot](https://stackoverflow.com/questions/43089372/when-does-a-c-sharp-task-actually-start) in the sense that when you hold a `Task` returned from an async method then it's already running regardless if you use `await` or not....
Yes, started porting Fable.Giraffe to TS/JS. It already runs on Python so the current Task tests would solve my needs. Could we make Giraffe run on Rust? 🙈
Related to #3752
@HLWeil @Freymaurer, this is a bit tricky since Python really just have `int` so we need to do some tricks if we want to make this work. Another possibility is...
Yes, with Python I'm considering removing the int subclasses which would make all integers transpile to variable size `int` and instead use `numpy` if more specific integers and reflection handling...
I have investigated this and it's because in Fable we translate `Dictionary` to Python `dict` which will only give you the keys when you iterate it. I don't want to...
Experimenting with how we could support pattern matching of DUs from Python: ```py class _U(Union): def __init__(self, tag: int, *fields: Any) -> None: super().__init__() self.tag: int = tag or 0...
Btw some reading I found: - https://github.com/Microsoft/pyright/issues/2160 - https://www.fullstory.com/blog/discriminated-unions-and-exhaustiveness-checking-in-typescript/ - https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions - https://mypy.readthedocs.io/en/stable/literal_types.html#tagged-unions - https://github.com/fable-compiler/Fable/pull/2618 - https://fable.io/docs/typescript/features.html#tagged-unions We should investigate if we should leave the DUs as is and instead...
Thanks for opening this issue. I think this should be possible. We have those interfaces for Python (almost) so should be possible for TypeScript as well. Let me have a...
Sounds like a good idea! Alt least it should not be `None`. Not sure why it generated `None` to begin with. However, the problem with `dict()` i.e `{}` is that...