Category Rust

24.06.2019 - link drop

Why [‘1’, ‘7’, ‘11’].map(parseInt) returns [1, NaN, 3] in Javascript - Medium Tools for profiling Rust

[Rust] No default parameters for function

I was wondering about using something like default parameter in rust. Unfortunately, this is not the case yet. There is a workaround by using the std::default::Default. There are some discussion around this subject and I do not know why, but I keep this here as a reference. best regards, akendo