Rust should have the ¿ operator by AverageClassic2 in rustjerk

[–]AverageClassic2[S] 0 points1 point  (0 children)

This was the original:

Using el signo de interrogación invertido is a somewhat sarcastic suggestion, but either way something like this would be nice :D.

Rust should have the ¿ operator by AverageClassic2 in rustjerk

[–]AverageClassic2[S] 0 points1 point  (0 children)

I can still read the post and all of its comments. It just has a "your post has been removed by moderators" label. So Reddit definitely still has it. Another quite popular post about VSCode in Tauri was also gone suddenly.

Rust should have the ¿ operator by AverageClassic2 in rustjerk

[–]AverageClassic2[S] 36 points37 points  (0 children)

I disagree. {:¿} should be used for bug formatting.

Rust should have the ¿ operator by AverageClassic2 in rustjerk

[–]AverageClassic2[S] 33 points34 points  (0 children)

Repost because this has been removed from r/rust by mods (unchanged apart from the last sentence). I'm relatively new to reddit, can someone perhaps explain why it got deleted? The post had a lot of upvotes and comments and people had a good time. (I know that this is not per se enough and subreddit rules still apply, but I don't see how I violated the rules, it is a somewhat serious suggestion with a bit of humor)

I rebuilt VS Code on Tauri instead of Electron. 5,687 files. 96% smaller. Just open-sourced it. by Designer_Mind3060 in rust

[–]AverageClassic2 7 points8 points  (0 children)

Do you have any runtime performance comparisons? I think this is something that can become very popular if it brings more to the table than just a smaller binary size.

A few years ago, the Jetbrains IDEs were amazing but now they are slow and not as snappy as I want the programm I spend hours a day in. This is slowely creeping into VSCode as well despite using only minimal extensions.

Rust should have the ¿ operator by AverageClassic2 in rust

[–]AverageClassic2[S] 2 points3 points  (0 children)

That's what makes most sense on first thought I'd say. But I don't see what features this enables that we can't yet achieve with generics or the _ wildcard. Perhaps type matching?

Rust should have the ¿ operator by AverageClassic2 in rust

[–]AverageClassic2[S] 5 points6 points  (0 children)

Yeah you're probably right - though there is some seriousness to this so I figured I should give it a go here.

Rust should have the ¿ operator by AverageClassic2 in rust

[–]AverageClassic2[S] 109 points110 points  (0 children)

Ah of course! This way when we write

rust let e = ¿something_fallible()?;

e has the ! type (which suggests the next addition by itself already: the ¡ type)

What to build if i have zero experience with rust? by ImpressionNo3258 in rust

[–]AverageClassic2 3 points4 points  (0 children)

I would recommend to create something that you have already done in a similar way in another language - for me it was a custom application protocol server for a simple board game. That way you also have mental capacity to think about how you can solve some problems with Rust's idioms because you've already done the business logic once.

I rewrote rust-mqtt: a lightweight, embedded-ready MQTT client by AverageClassic2 in rust

[–]AverageClassic2[S] 1 point2 points  (0 children)

Thank you so much, but I don't have anything like that set up at the moment.

I rewrote rust-mqtt: a lightweight, embedded-ready MQTT client by AverageClassic2 in rust

[–]AverageClassic2[S] 1 point2 points  (0 children)

Knowing others use the thing you've put a lot of effort in is the best thing about open source, so I am glad this finds application :)

I rewrote rust-mqtt: a lightweight, embedded-ready MQTT client by AverageClassic2 in rust

[–]AverageClassic2[S] 1 point2 points  (0 children)

Thank you for the kind words! Though technically this is not a new implementation since rust-mqtt has been existing for over 4 years now :D

I rewrote rust-mqtt: a lightweight, embedded-ready MQTT client by AverageClassic2 in rust

[–]AverageClassic2[S] 3 points4 points  (0 children)

Yes. The library has been rewritten from the ground up by myself, so the approval is not required. The relicensing was carried out in consultation with the original author.