yuyi

Results 36 comments of yuyi

I think the usage is error, we can match sum type or interface type. we can do like the following: ```v struct Type { mut: something string } type Union...

Currently, `Fn[I, []O, R]` is not supported. `Fn[I, []O, R]` just equivalent to `Fn` or `Fn[I, O, R]`.

> Inline comments are tricky with our implementation. I think it's better to ban them. Very much agree with this just like zig.

For consistency, range_index is required. The original processing actually returned an error. e.g. ```v g.writeln('} else {') g.writeln('\t${tmp_opt}.state = 2; ${tmp_opt}.err = _v_error(_SLIT("array index out of range"));') ```

In index we can distinguish between negative value or larger than the range.