I find the syntax ok, and you do get used to the snake_case.
Stuff like this:
fn map<T, U, F>(vector: &[T], function: F) -> Vec<U>
where F: for<'a> Fn(&'a T) -> U {
...
It's not too hard to read once you're in the ecosystem, but there's a lot of non-alphanumerics in there, and you know each one of them is super important to getting the thing working.Why not something more akin to ML?
fn map<T, U, 'a>(vector: &[T], function: &'a T -> U) -> Vec<U>I've used the "Native Debug" extension with VS: Code in the past.
I've heard that if you have a CLion license, it (with the Rust plugin) is pretty solid at debugging, but I don't own one of those.
What do you mean by "Native Debug" extension for VSCode? The normal Rust plugin built on top of Racer often shows Racer as crashed, and doesn't underline errors while typing. It also doesn't really seem to know the type of a variable most of the time. I'm writing in too many languages at once. Autocompletion usually gives me enough of a hint that I remember what to type.
VSCode being my favorite editor, so I'm glad that I don't need to install another IDE right now.
EDIT: I just checked it out, and apparently you can install the Rust plugin with IntelliJ Community Edition. Which is free.
I meant this extension: https://marketplace.visualstudio.com/items?itemName=webfreak...
> The normal Rust plugin
Which one are you talking about? There are three of them: one is abandoned.
> you can install the Rust plugin with IntelliJ Community Edition. Which is free.
My understanding is that you can install it, but it does not include debugging support, that's what you have to pay for.
>it does not include debugging support
That's a bit sad, but I haven't had debugging support in VSCode until now. I'd pick good code completion and error hints over debugging. Both would be nice though.
How do you configure that Native Debug plugin for Rust?
> How do you configure that Native Debug plugin for Rust?
exactly the same way that it says on the page; choose gdb or lldb, change target to point to the executable, and you're good to go.
o/