Alexander Medvednikov

Results 230 comments of Alexander Medvednikov

``` FAIL [ 134/1353] 351.882 ms vlib/json/json_test.v /home/runner/work/v/v/vlib/json/json_test.v:21: fn test_simple > assert s == '{'name':'Peter','age':28,'salary':95000.5,'title':2}' Left value: {"name":"Peter","age":28,"salary":95000.5,"title":"executive"} Right value: {"name":"Peter","age":28,"salary":95000.5,"title":2} ```

@spytheman yes, I agree, it should be possible to opt out. It's just about json though, so it should be something like `[encode_as_number]` or `[use_ints]` or something

I 100% agree.

But I'd keep the current syntax: `[json:required]` **edit** hm that would actually conflict with `[json:field_name]` but we can force using quotes for those: `[json:'field_name']`.

We allow [export] for functions, I think it'd be consistent to allow it for structs.

I get the same error periodically. Happens about 2% of the time. So it's a hard to reproduce bug, but it's there.

@yuyi98 do you know what could be causing ``` | I_ui__Widget_as_I_ui__WidgetThemeStyle /tmp/v_1000/first.5516292057153074927.tmp.c:60954:92: error: incompatible type for argument 1 of ‘I_ui__WidgetThemeStyle_as_I_ui__WidgetThemeStyle’ 60954 | ui__WidgetThemeStyle w = I_ui__WidgetThemeStyle_as_I_ui__WidgetThemeStyle((I_ui__Layout_as_I_ui__WidgetThemeStyle(*l))); ```

Strange... @acimnotes can you vfmt the files you changed for now?

I should probably make `unix` a readonly field to avoid such errors.

Thanks, glad you like it. And yes, readability is one the main points of V. I'm happy it works as intended :)