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

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

lemmy.ml

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

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

lemmy.ml

@[email protected] to Programmer [email protected] • 1 year ago
message-square
54
fedilink
  • cross-posted to:
  • [email protected]
  • Dave.
    link
    fedilink
    68•
    edit-2
    1 year 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•1 year 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•1 year ago

        Crap, thats what I was thinking.

        • @[email protected]
          link
          fedilink
          10•1 year ago

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

          • @[email protected]
            link
            fedilink
            English
            5•1 year ago

            Slow down satan

      • @[email protected]
        link
        fedilink
        English
        1•1 year 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.04K users / day
  • 4.56K users / week
  • 7.24K users / month
  • 17.3K users / 6 months
  • 29.7K subscribers
  • 2.08K Posts
  • 76.9K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org