Release testnet-v3.5.0
Unclaimed project
Are you a maintainer of leo? Claim this project to take control of your public changelog and roadmap.
Changelog
π¦ The Leo Programming Language. A Programming Language for Formally Verified, Zero-Knowledge Applications
Release testnet-v3.5.0
Arrays of size 0 and loops over empty ranges are now supported in Leo. While these constructs do not produce any instructions in the compiled Aleo bytecode, they enable more generic or pattern-based programming styles in Leo, especially when writing code that abstracts over sizes, iterates conditionally, or uses compile-time parameters. For ex...
T?)Leo now supports first-class optional types using the T? syntax (e.g., u8?, Foo?, [u64?; 2]).
Optional values can be compared with none, assigned, passed into inline functions, and stored in arrays and structs.
program optionals.aleo {
struct Point { x: u32, y: u32 }
transition main() {
// Optional integers...
Leo 3.2.0 introduces a module system.
Given a file other_module.leo containing struct, const, and inline definitions:
const X: u32 = 2u32;
struct S {
a: field
}
inline increment(x: field) -> field {
return 1field;
}
You may refer to contents of the module as: