halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 2 months ago

What's stopping you from writing your Rust like this?

lemmy.ml

message-square
54
fedilink
  • cross-posted to:
  • [email protected]
388

What's stopping you from writing your Rust like this?

lemmy.ml

@[email protected] to Programmer [email protected] • 2 months ago
message-square
54
fedilink
  • cross-posted to:
  • [email protected]
  • Dave.
    link
    fedilink
    68•
    edit-2
    2 months ago

    rustfmt

    is stopping me from writing code like this, and I have never been more happier using it after viewing this.

    • @[email protected]
      link
      fedilink
      English
      60•2 months ago

      I’m going to write a tool that automatically adds the braces and semicolons to the column as you edit the code.

      I will call it rustfml

      • irelephant [he/him]🍭
        link
        fedilink
        English
        11•2 months ago

        Crap, thats what I was thinking.

        • @[email protected]
          link
          fedilink
          10•2 months ago

          It could be run after git checkout and then rustfmt before commit.

          • @[email protected]
            link
            fedilink
            English
            5•2 months ago

            Slow down satan

      • @[email protected]
        link
        fedilink
        English
        1•2 months ago

        Please do, I’m waiting for it to get ported to other languages.

Programmer [email protected]

[email protected]

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 1.37K users / day
  • 4.68K users / week
  • 8.71K users / month
  • 17.3K users / 6 months
  • 23.2K subscribers
  • 1.4K Posts
  • 50.5K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org