Releases: vlang/v
Releases · vlang/v
weekly.2021.7
releases: weekly.2021.7
weekly.2021.6
releases: weekly.2021.6
weekly.2021.5
weekly.2021.5
0.2.2
V 0.2.2
22 Jan 2021
vweb
now uses struct embedding:app.vweb.text('hello')
=>app.text('hello')
.- Consts can now be declared outside of
const ( ... )
blocks:const x = 0
. - Overloading of
>
,<
,!=
,==
,<=
and>=
operators. - New struct updating syntax:
User{ ...u, name: 'new' }
to replace{ u | name: 'new' }
. byte.str()
has been fixed and works like with all other numbers.byte.ascii_str()
has been added.- Smart cast in for loops:
for mut x is string {}
. [noinit]
struct attribute to disallow direct struct initialization withFoo{}
.- Array decompose:
[1, 2, 3]...
is now...[1, 2, 3]
- Treating
enum
asint
and operations onenum
except==
and!=
are removed for strict type checking. - Support
[manualfree] fn f1(){}
and[manualfree] module m1
, for functions doing their own memory management. - Allow usage of
<
and>
operators for struct in.sort
method for arrays, i.e.arr.sort(a < b)
. - Auto generate assignment operators like
+=
,-=
,*=
,/=
and%=
if the operators are defined. - Colorize and improve failing tests output.
- Fix
go
with a generic function:go test<string>(c, 'abcd')
. - Add comptime
x := $embed_file('v.png') println(x.len) println(ptr_str(x.data()))
, for embedding files into binaries. - Advanced vdoc search on mobile layout.
- string's
left()
/right
were removed in favor of slicing syntax:str[..pos]
. - gg: native graphics mode on macOS/iOS (using Cocoa Drawing API).
0.2.1
ci: build-vbinaries on windows
0.2
weekly.2020.51.2
os: vfmt all of `os` .v files, add it to `v test-cleancode` with no e…
weekly.2020.51
map: use voidptr-based key equality and meta index methods (#7320)
weekly.2020.49.5
binary_artifact.yml: chmod 755 thirdparty/tcc/tcc.exe too
weekly.2020.49.4
binary_artifact.yml: unpack to a v/ folder as before.