I never tried it, because it is 2d only: https://flathub.org/apps/io.github.dubstar_04.design
Website | Codeberg | GitHub | Altes Profil | Noch älteres Profil
Verantwortlich für @[email protected] & @[email protected].
- 0 Posts
- 9 Comments
this
is commonly used with a similar meaning toself
in cases whereself
can’t be used because it is a reserved keyword.Example:
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<St1::Item>> { let this = self.project(); this.inner.poll_next(cx) }
https://github.com/rust-lang/futures-rs/blob/master/futures-util/src/stream/select.rs#L113-L116
I do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.
Rust would be some borrow checker compile error like
borrowed data escapes outside of associated function
argument requires that `'1` must outlive `'static`
d_k_bo@feddit.orgto Programmer Humor@programming.dev•Python needs an actual default function7·1 month agoFree standing functions in Java?! This can’t be true.
d_k_bo@feddit.orgto Programmer Humor@programming.dev•Python needs an actual default function385·1 month agoStill better than having to create a new class just to implement
public static void main(String[] args) {}
Relevant Fireship video: https://youtu.be/m4-HM_sCvtQ
You could also try micro, which is a terminal text editor with mouse support, syntax highlighting and many more features that you know from GUI text editors.
d_k_bo@feddit.orgto Linux@lemmy.ml•PSA: Remember to also check hidden directories you don't even know about for waste of space1·8 months agothe hidden “trashbin”, .Trash-$(uid), invented by Ubuntu
This isn’t some “idiotic principle invented by Ubuntu”, it just follows the freedesktop.org Trash specification. For many users, it can be really beneficial, see also the spec’s introduction:
An ability to recover accidentally deleted files has become the de facto standard for today’s desktop user experience.
Users do not expect that anything they delete is permanently gone. Instead, they are used to a “Trash can” metaphor. A deleted document ends up in a “Trash can”, and stays there at least for some time — until the can is manually or automatically cleaned.
Whether an application like Prism Launcher should use the trash can or delete the files directly is an entirely different question.
Python too.