Praise The Sun 𖤓
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 months ago

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

lemmy.ml

external-link
message-square
8
fedilink
30
external-link

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

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 months ago
message-square
8
fedilink
alert-triangle
You must log in or register to comment.
  • jevans ⁂@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    ·
    4 months ago

    Kill it with fire

  • geneva_convenience@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    4 months ago

    The last line is peak

  • merthyr1831@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 months ago

    copy into a word document. select all the {}; and set their colour to white. ur welcome

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 month ago

    deleted by creator

    • verdigris@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      4 months ago

      Yeah the rust book is fantastic, you can learn directly from that.

      I like learnxinyminutes.com for quick reference.

  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 months ago

    Why aren’t “alternate syntaxes” a thing? You can pretty easily just write code to convert between C-like and Python-like syntax. Why aren’t there IDE extensions that let you write in python syntax and automatically commit the standard syntax.

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      Transpilers are actually pretty popular in js land, Typescript is a good example. You can even transpile a really different syntax if you wanted to. For example, I use squint which lets me write Clojure syntax and produces js as output.

  • PowerCrazy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    3
    ·
    4 months ago

    Why does even a modern language syntax insist on having end of line characters like semi colons. Surely we have moved beyond that. What is even the point of those characters?

    • verdigris@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      4 months ago

      It’s too hard to tell whether people in this thread are trolling.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 104 users / day
  • 335 users / week
  • 1.01K users / month
  • 2.31K users / 6 months
  • 1 local subscriber
  • 37K subscribers
  • 453 Posts
  • 522 Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org