- Implicit Selector Expressions
- Half-closed range
a..<b([a, b))- This is alongside the closed range
a..b([a, b])
- This is alongside the closed range
notinbinary operator formapandbit_settypes:x notin y(equivalent to!(x in y))
- Endian specific integers
- e.g.
i32,i32le,i32be
- e.g.
- Reintroduction of
i128andu128 - Labels for blocks and if statements (
breakonly) - Improved common parsing errors (e.g. C-style
->for selectors rather than Odin-style.) - Import name rules
- The import name for the package will try to be determined from the import path
- Context-based Logging system
#load- Load a file at compile time as a byte slice
- Procedure group syntax change to
proc{} - General core library improvements
- Odin Parser as part of the core library
import "core:odin/parser"et al.
- New build flag:
-define:foo=123 #definedbuilt-in procedurewhen #defined(FOO) { ... }
- Improved
-vet - Replace
foreign exportwith@export @private@static
Experimental Features
odin query-go-to-definitions(OGTD file format)-global-definitions(JSON file format)-compact(compactify the JSON file)
intrinsics.vectortype
Related Topics
- New Odin website: https://odin-lang.org
- New Odin documentation: https://odin-lang.org/docs/