|
|
|
|
|
by masklinn
5003 days ago
|
|
Even more functional-ish features: most block-based constructs are actually parse transforms on top of HoFs. For instance for 5.times {
// code
}
desugars to: // |args*| { stmt* } is the Rust block syntax
times(5, || {
// code
true // explicit order to continue
})
|
|