vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.5k stars 2.15k forks source link

comptime, ast: support `[$d('s', 4)]int{}`, move resolving to method on `ComptimeCall` #21701

Closed larpon closed 1 week ago

larpon commented 1 week ago

Add support for my_fixed_size_array := [$d('my_size', 4)]int{}.

... also moved is_escape_sequence/1 from scanner to util for reuse (if that is not ok it can be moved back)