Dag Brattli

Results 190 comments of Dag Brattli

Could you tell more about the use-case? Can you have special code for Python or is it similar code that needs to be used for Python and JS? PS: The...

Candidates for `obj()` can be: 1. `dict()`, uses subscript access 2. `object()`, no subscript or attribute access 3. `Class AttrDict: pass`, allows attribute access, but not subscript access

I think you are right about `{}` vs `dict()`. But one thing with the latter you can give type arguments e.g `dict[str, str]()` which can be nice sometimes. Anyways, would...

The problem I have with the Fable AST is that it has a Set expr, but I don't know how I can tell if it should be subscript/index (e.g `a["b"]`)...

@ncave I'm unsure about the Fable AST if there is a way to tell if something should be subscripted or use attribute access for `SetKind` and `GetKind`. Do you have...

@MangelMaxime I don't think the issue is fixed yet. The code will now generate an empty dict for obj (), but setters and getters still do not work as expected....

Code fails when running .NET. We can fix it with `CultureInfo.DefaultThreadCurrentCulture`, but then we need to add support for it in Fable Rust as it gives error when compiling to...

Strangely the test passed at my Mac at home. Looking into things I noticed that the environment was different e.g `LANG=en_US.UTF-8`, so had to set it to Norwegian to get...

For reference, if you try to set culture within a single test e.g: ```fs CultureInfo.CurrentCulture

But I think we anyways we should make setting `CurrentCulture` to `InvariantCulture` compilable for Rust. I think it already is for JS and Python, ref: https://github.com/fable-compiler/Fable/blob/main/src/Fable.Transforms/Python/Replacements.fs#L3085 UPDATE: failed for Python...