1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

changelog: grammar, typos

This commit is contained in:
yuyi 2020-02-21 21:17:27 +08:00 committed by GitHub
parent 6dac2edeef
commit 6d0a599d0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,9 +52,9 @@ The last release before 0.2.
- Additional compile-time flags: `$if clang, msvc, mingw, x32, x64, big_endian, little_endian {`. - Additional compile-time flags: `$if clang, msvc, mingw, x32, x64, big_endian, little_endian {`.
- All C functions now have to be declared, all missing C functions have been defined. - All C functions now have to be declared, all missing C functions have been defined.
- Global variables (only with the `--enable-globals` flag) for low level applications like kernels and drivers. - Global variables (only with the `--enable-globals` flag) for low level applications like kernels and drivers.
- Nothing can be cast to bool (previously code like `if bool(1) {` worked. - Nothing can be cast to bool (previously code like `if bool(1) {` worked).
- `<<` and `>>` now work with all integer types. - `<<` and `>>` now work with all integer types.
- V detects Cygwin and shows an error. (V supports Windows natively) - V detects Cygwin and shows an error (V supports Windows natively).
- Improved type checking of some operators (`%, |, &` etc). - Improved type checking of some operators (`%, |, &` etc).
- Windows 7 support. - Windows 7 support.
- `println(true)` now prints `true` instead of `1`. - `println(true)` now prints `true` instead of `1`.
@ -81,8 +81,6 @@ The last release before 0.2.
## V 0.1.22 ## V 0.1.22
*28 Oct 2019* *28 Oct 2019*
@ -97,8 +95,7 @@ The last release before 0.2.
- Infinite multi-dimensional arrays (`[][][]int`). - Infinite multi-dimensional arrays (`[][][]int`).
- `unsafe`. - `unsafe`.
- `[deprecated]` attribute. - `[deprecated]` attribute.
- `[if]` function attributes for compile time function exclusion - `[if]` function attributes for compile time function exclusion for performance.
for performance.
- `switch` has been completely removed from the language and replaced by - `switch` has been completely removed from the language and replaced by
`match` everywhere. `match` everywhere.
- `pub struct` and `pub const`, previously all structs and consts were public - `pub struct` and `pub const`, previously all structs and consts were public
@ -124,7 +121,7 @@ used in some industries.
- `none` keyword for optionals. - `none` keyword for optionals.
- Solaris support. - Solaris support.
- All table lookup functions now use `none`. - All table lookup functions now use `none`.
- varargs: `fn foo(bar int, params ...string) {` - varargs: `fn foo(bar int, params ...string) {`.
- Double quotes (`"`) can now also be used to denote strings. - Double quotes (`"`) can now also be used to denote strings.
- GitHub Actions CI in addition to Travis. - GitHub Actions CI in addition to Travis.
- `-compress` option. The V binary built with `-compress` is only ~90 KB! - `-compress` option. The V binary built with `-compress` is only ~90 KB!
@ -158,9 +155,6 @@ this backend.
- Bitwise operators `|`, `^`, `&` no longer work with booleans. - Bitwise operators `|`, `^`, `&` no longer work with booleans.
## V 0.1.19 ## V 0.1.19
*12 Sep 2019* *12 Sep 2019*
@ -196,15 +190,11 @@ this backend.
- `@FILE, @LINE, @FN, @COLUMN` for debugging. - `@FILE, @LINE, @FN, @COLUMN` for debugging.
## V 0.1.18 ## V 0.1.18
*16 Aug 2019* *16 Aug 2019*
- Built-in ORM (`uk_customers = db.select from Customer where country == 'uk' && nr_orders > 0`) - Built-in ORM (`uk_customers = db.select from Customer where country == 'uk' && nr_orders > 0`).
- Map initialization syntax: `m := { foo: bar, baz: foo }` - Map initialization syntax: `m := { foo: bar, baz: foo }`.
- `map.delete(key)`. - `map.delete(key)`.
- `libcurl` dependency was removed from the `http` module. - `libcurl` dependency was removed from the `http` module.
- All function arguments are now immutable by default (previously they could be - All function arguments are now immutable by default (previously they could be
@ -217,7 +207,7 @@ this backend.
- SChannel support on Windows. - SChannel support on Windows.
- `net.urllib` module. - `net.urllib` module.
- vpm package manager, `v install`. - vpm package manager, `v install`.
- `()` are now required in complex bool expressions: `(a && b) || c` instead of `a && b || c - `()` are now required in complex bool expressions: `(a && b) || c` instead of `a && b || c`.
- All arrays now have a default `.str()` method. - All arrays now have a default `.str()` method.
- Bootstrapping V with MSVC. - Bootstrapping V with MSVC.
- Experimental `≠` etc support. - Experimental `≠` etc support.
@ -228,7 +218,6 @@ this backend.
- `json` functions can no longer be used if the `json` module is not imported. - `json` functions can no longer be used if the `json` module is not imported.
## V 0.1.17 ## V 0.1.17
*29 Jul 2019* *29 Jul 2019*
- `vweb` module for developing web apps in V. - `vweb` module for developing web apps in V.
@ -247,9 +236,6 @@ this backend.
- Internal modules. - Internal modules.
## V 0.1.16 ## V 0.1.16
*23 Jul 2019* *23 Jul 2019*
- V can now be used with Visual Studio! - V can now be used with Visual Studio!
@ -268,11 +254,10 @@ this backend.
- `key in map` syntax (replacing `map.exists(key)`). - `key in map` syntax (replacing `map.exists(key)`).
## V 0.1.15 ## V 0.1.15
*15 Jul 2019* *15 Jul 2019*
- FreeBSD, OpenBSD, NetBSD, DragonFly support. - FreeBSD, OpenBSD, NetBSD, DragonFly support.
- Hot code reloading now works with graphical applications: [bounce.v](https://github.com/vlang/v/blob/master/examples/hot_code_reloading/bounce.v) - Hot code reloading now works with graphical applications: [bounce.v](https://github.com/vlang/v/blob/master/examples/hot_code_reloading/bounce.v).
- VROOT was removed, the installation process is now much simpler. - VROOT was removed, the installation process is now much simpler.
- `defer` statement. - `defer` statement.
- map.v was re-written. It's now much faster. - map.v was re-written. It's now much faster.
@ -283,16 +268,13 @@ this backend.
- Submodules and module aliases (`import encoding.base64 as b64`). - Submodules and module aliases (`import encoding.base64 as b64`).
## V 0.1.14 ## V 0.1.14
*12 Jul 2019* *12 Jul 2019*
- `gg` module Windows support, V Tetris runs on Windows. - `gg` module Windows support, V Tetris runs on Windows.
- `glad` and `cJSON` are now compiled only once, this makes compilation of programs using `gg` and `json - `glad` and `cJSON` are now compiled only once, this makes compilation of programs using `gg` and `json` a bit faster.
a bit faster.
- `v.c` has been cleaned up and minimized (~16k => ~10k lines of code). - `v.c` has been cleaned up and minimized (~16k => ~10k lines of code).
- `type` aliases can now have methods. - `type` aliases can now have methods.
- Const overflow check during compilation (`byte(1000)` will no longer compile) - Const overflow check during compilation (`byte(1000)` will no longer compile).
## V 0.1.13 ## V 0.1.13
@ -310,7 +292,7 @@ this backend.
## V 0.1.12 ## V 0.1.12
*4 Jul 2019* *4 Jul 2019*
- V can finally compile itself on Windows. (https://github.com/vlang/v#mingw-w64) - V can finally compile itself on Windows (https://github.com/vlang/v#mingw-w64).
- `os` module now uses optionals in all functions that return `File`. Lots of bugs with optionals fixed. - `os` module now uses optionals in all functions that return `File`. Lots of bugs with optionals fixed.
- `println` was optimized. It no longer results in allocations. Now it also works correctly with all integer types. - `println` was optimized. It no longer results in allocations. Now it also works correctly with all integer types.
- Lots of `vfmt` fixes, it will be enabled tomorrow. - Lots of `vfmt` fixes, it will be enabled tomorrow.
@ -321,9 +303,9 @@ this backend.
## V 0.1.11 ## V 0.1.11
*1 Jul 2019* *1 Jul 2019*
- Cross compilation for Windows! - Cross compilation for Windows!
- Lots of Windows fixes - Lots of Windows fixes.
- socket.v - socket.v.
- maps fixed - maps fixed.
## V 0.1.9 - 0.1.10 ## V 0.1.9 - 0.1.10
@ -334,11 +316,13 @@ this backend.
- One single archive with pre-built binaries for all operating systems. - One single archive with pre-built binaries for all operating systems.
- `mut var := val` was fixed (previously `mut var = val` was allowed as well). - `mut var := val` was fixed (previously `mut var = val` was allowed as well).
## V 0.1.8 ## V 0.1.8
*28 Jun 2019* *28 Jun 2019*
- Single file programs without `fn main` now work as expected. - Single file programs without `fn main` now work as expected.
- REPL has been fixed: it now supports imports, consts, function definitions, etc. - REPL has been fixed: it now supports imports, consts, function definitions, etc.
## V 0.1.7 ## V 0.1.7
*27 Jun 2019* *27 Jun 2019*
- All C code in the compiler and vlib has been replaced with V. - All C code in the compiler and vlib has been replaced with V.