Skip to content

v0.15.0

Compare
Choose a tag to compare
@huacnlee huacnlee released this 17 Feb 01:49

Language

  • Allow generic parameters to be passed to closures.

    fn a<T>() {
        let _b = || b::<T>();
    }
    
    fn b<T>() {}
    
  • Add new array initialization syntax.

    let b = [99; 10]; // Used to initialize an array of length 10, with each element having the value 99
    
  • Add new Bytes initialization syntax.

    use std.io.Bytes;
    let b: Bytes = [1, 2, 3, 4, 5];
    

Tools

  • Add nvs command.

Stdlib

  • Add std.worker module.
  • Add WorkerPool type that can be created with std.worker.Worker.pool method.