mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 21:10:30 +00:00
Fix immutable rules; add some general documentation
immutable is still a little weird and not completely what you'd expect. Maybe just not having it is better.
This commit is contained in:
@@ -2,16 +2,9 @@
|
||||
|
||||
|
||||
main :: proc() {
|
||||
{
|
||||
|
||||
x := [...]int{1, 2, 3, 4};
|
||||
immutable y := ^x;
|
||||
fmt.println(y^[0]);
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
Version 0.1.0
|
||||
Version 0.1.1
|
||||
|
||||
Added:
|
||||
* Dynamic Arrays `[...]Type`
|
||||
@@ -24,10 +17,11 @@ main :: proc() {
|
||||
* Entities prefixes with an underscore do not get exported on imports
|
||||
* Overloaded `free` for pointers, slices, strings, dynamic arrays, and dynamic maps
|
||||
* enum types have an implict `names` field, a []string of all the names in that enum
|
||||
* immutable variables are "completely immutable"
|
||||
* `slice_to_bytes` - convert any slice to a slice of bytes
|
||||
|
||||
Removed:
|
||||
* Maybe/option types
|
||||
* immutable variables
|
||||
* Remove `type` keyword and other "reserved" keywords
|
||||
* `compile_assert` and `assert`return the value of the condition for semantic reasons
|
||||
|
||||
|
||||
Reference in New Issue
Block a user