731 Commits

Author SHA1 Message Date
Adam Oates
66ac23fc57
parser: add error for array init of Results []!type{} (fix #23360) (#23375) 2025-01-05 19:09:33 +02:00
Delyan Angelov
fb5bac112e
docs: document @[json: "-"] and @[sql: "-"] 2024-12-30 10:30:26 +02:00
p134c0d3
542a8e7826
docs: fix verbiage, remove potential confusion, in hello world section (#23310) 2024-12-30 09:45:02 +02:00
alexey semenyuk
f198e69c21
docs: remove -skip-unused from the docs, it is now on by default (close #23265) (#23303) 2024-12-29 15:32:55 +02:00
Carlos Esquerdo Bernat
63fff1dcd4
json: use @[required] to disallow parsing nulls (#23218) 2024-12-22 10:12:58 +02:00
Delyan Angelov
1fae506900
docs: add a section for static variables (#23184) 2024-12-16 19:48:43 +02:00
Delyan Angelov
844d89fd09
parser,checker,ast: support @[must_use] tag for fns/methods, and an experimental -check-result option (#22983) 2024-11-27 07:11:40 +02:00
Delyan Angelov
95e5ba44ae
docs: add a small sumtype match example in the Match section too 2024-11-25 21:11:21 +02:00
Felipe Pena
393e4ea8b2
docs: update section about Enum using reserved keywords (#22944) 2024-11-23 14:17:45 +02:00
Delyan Angelov
660f73395e
docs: change "See also" link in the println section to point to the String interpolation section 2024-11-23 14:03:13 +02:00
Bruno-Vdr
26837d4862
docs: add module hierarchy section (#22919) 2024-11-20 09:00:23 +02:00
Delyan Angelov
4e62b53ab6
docs: change instructions for cloning the V repository to use --depth=1 (#22905) 2024-11-18 23:24:02 +02:00
Bruno-Vdr
2390e58da0
docs: increase keyword number from 44 to 45 in documentation Appendix I: Keywords (#22890) 2024-11-17 19:52:16 +02:00
Bruno-Vdr
df220b6eb3
docs: add the implements keyword to the appendix of all V keywords (#22889) 2024-11-17 19:17:21 +02:00
Delyan Angelov
be4aec882a
docs: update the documentation of the @[console] tag, add advice to use -subsystem windows instead 2024-11-16 14:29:10 +02:00
Alexander Mandrikov
e1a5acc1ef
orm: support plain @[serial] attribute for marking struct fields (#22814) 2024-11-09 17:26:22 +02:00
Pepper Gray
891a8bc362
doc: explain deprecation process (#22568) 2024-10-18 13:11:43 +03:00
Pepper Gray
ce8f62146b
utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
Delyan Angelov
3326392ce2
docs: fix html rendering of the list of columns, in the description of the #profiling section 2024-10-16 15:18:56 +03:00
Delyan Angelov
df9cf27c7f
docs: add an Other online resources section (#22538) 2024-10-16 08:44:11 +03:00
Delyan Angelov
e4d80596a0
docs: add link to https://docs.vlang.io/introduction.html in doc/docs.md 2024-10-15 22:57:53 +03:00
Alexander Medvednikov
2b52153c14 all: make 0 => unsafe { nil } an error, not a notice 2024-10-07 01:54:19 +03:00
Alexander Medvednikov
a2d385aee3 parser: allow struct definitions inside functions 2024-10-06 22:40:14 +03:00
Laurent Cheylus
5f6015fd16
docs: improve format in the conditional compilation section (#22248) 2024-09-18 17:07:33 +03:00
Felipe Pena
13fdc724a7
docs: comptime method params (#22252) 2024-09-18 16:53:16 +03:00
Laurent Cheylus
94a412dcc8
docs: add FreeBSD in cross compilation section (#22249) 2024-09-18 16:51:38 +03:00
Swastik Baranwal
0fb95a8ff8
checker: suggest using the @[_allow_multiple_values] attribute, when declaring enums that have duplicate values (#22224) 2024-09-16 08:16:39 +03:00
Delyan Angelov
4c68f85bc7
all: add support for @BUILD_DATE, @BUILD_TIME and @BUILD_TIMESTAMP, all using v.util.get_build_time(), and overridable through SOURCE_DATE_EPOCH (#22213) 2024-09-14 17:00:47 +03:00
Laurent Cheylus
888d84d26d
docs: add implements keyword for explicit interface implementations (#22214) 2024-09-13 16:59:38 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
Delyan Angelov
3e7f8edb34
docs: add more details to the newly added -compress section 2024-09-07 09:05:57 +03:00
Carlos Esquerdo Bernat
61609454d6
docs: add a section for the -compress flag (#22169) 2024-09-06 20:02:58 +03:00
Kim Shrier
0a61b4a076
docs: fix minor typos in the memory management section (#22151) 2024-09-03 07:51:03 +03:00
Delyan Angelov
d130939ad6
docs: improve documentation for if expressions
* add more examples
  * add a comparison with C's ternary operator
  * add an entry in the contents section
2024-09-01 09:04:30 +03:00
Martin Skou
7baee04727
docs: add an example on how to use Options/Results, when returning multiple values from a function (#22099) 2024-08-23 10:16:31 +03:00
Delyan Angelov
3965a6c54f
docs: streamline the installation instructions and notes for Windows and Ubuntu 2024-08-18 21:17:54 +03:00
Mike Ward
8210593349
docs: clarify the .precision specification section for string interpolation of floats (#22061) 2024-08-16 21:21:25 +03:00
yuyi
cb58db56ef
all: change empty comment to newline (#22053) 2024-08-16 12:09:30 +03:00
Carlos Esquerdo Bernat
e8305d240c
docs: update old [tag] -> @[tag] (#22036) 2024-08-12 14:31:03 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Delyan Angelov
340535fe06
docs: add more C interop notes and examples (#21965) 2024-07-31 16:02:55 +03:00
JalonSolov
12dc6f3de3
docs: add missing @ on export attributes (#21858) 2024-07-13 12:31:19 +03:00
Kim Shrier
ff102c95b7
doc: update full list of builtin compile options (#21808) 2024-07-06 02:33:24 +03:00
Delyan Angelov
d364e61b8c
docs: improve the v deploy.vsh section 2024-06-23 11:27:45 +03:00
larpon
78b77b9f14
comptime: support -d ident=value and var := $d('ident', 0) (#21685) 2024-06-19 07:24:16 +03:00
Swastik Baranwal
bebe943cc2
all: support &&= and ||= for bool alias types as well (#21684) 2024-06-16 03:58:25 +03:00
Delyan Angelov
0e543fb364
docs: update the array/slice/reallocation examples and comments 2024-06-07 10:54:30 +03:00
Alexander Medvednikov
f3624d58cf doc: document x := ?int(none) 2024-05-20 21:48:16 +03:00