miniblog.
← Back to all posts
Jul 31, 2022 at 05:01
Rust is exploring ideas that allow it to generalise over effects, so you don't need foo and foo_async. It's an unusual name, and potentially complicates error messages, but it's good problem to examine.
Redirect
blog.rust-lang.org/inside-rust/2022/07/27/keyword-generics.html
Wilfred Hughes
Related Posts
Aug 17, 2017 at 22:50
"Awesome error messages for Dotty"
https://scala-lang.org/blog/2016/10/14/dotty-errors.html
(exploring Elm/Rust influenced compiler error messages in Scala!)
Awesome Error Messages for Dotty
Wilfred Hughes
Shared words: Rust, exploring, error, messages Score: 108.5
Nov 14, 2021 at 23:18
TIL that Rust supports inline struct definitions!
https://github.com/rust-lang/rust/commit/6d43225bfb08ec91f7476b76c7fec632c4a096ef#diff-1dfa77331261e81c069657949febee032512a702bfe5865d7993cfc9f577f2f3
They still need names, but it allows you to define structs only used in a single function.
Fixes #80335 · rust-lang/rust@6d43225
Empowering everyone to build reliable and efficient software. - Fixes #80335 · rust-lang/rust@6d43225
Wilfred Hughes
Shared words: Rust, allow, need, name Score: 105.7
Feb 6, 2018 at 08:23
Implementing an RPN macro in Rust:
https://blog.cloudflare.com/writing-complex-macros-in-rust-reverse-polish-notation/
(includes a really useful section on robust macros that produce good error messages)
Writing complex macros in Rust: Reverse Polish Notation
Among other interesting features, Rust has a powerful macro system. Unfortunately, even after reading The Book and various tutorials, when it came to trying to implement a macro which involved processing complex lists of different elements, I still struggled to understand how it should be done.
Wilfred Hughes
Shared words: Rust, error, messages, good Score: 104