I'm learning #Rust now and am surprised that my #Perl experience is perhaps more valuable than JavaScript / TypeScript experience to understand some of the concepts. Why:
- Perl has more explicit reference handling
- Perl has Moose::Roles which have some similarities in Rust traits. I haven't run into a similar pattern as much in JavaScript / TypeScript.
DateTime.pm have a $dt->truncate( to => ... ) method. Makes possible to alter a date to a "close" value, e. g. ->truncate( to => 'day' ) and a DateTime that's set to 3:54PM would be "reset" to the same day, 00::00:00AM.