5 ms·
I don't think Rust is low on boilerplate. As an example, here is a video of David Pedersen creating a simple Tower service: https://www.youtube.com/watch?v=16s
by davidkunz 5y ago
I don't think Rust is low on boilerplate.
As an example, here is a video of David Pedersen creating a simple Tower service: https://www.youtube.com/watch?v=16sU1q8OeeI&t=945s https://www.youtube.com/watch?v=16sU1q8OeeI&t=945s
I found it intimidating how much you have to write to create a simple middleware.
- timw4mail 5y agoThere's some amount of boilerplate that is unavoidable, but, if you have the patience, `macro_rules!` type macros can help cut down on syntactical boilerplate in many cases. Compared to C, and sometimes C++, there's generally less boilerplate in Rust. Compared to more traditional web languages, though, Rust will seem to have more boilerplate due to it's lower-level design.