My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前

When people encounter Lisp syntax for the first time

lemmy.ml

message-square
26
fedilink
  • cross-posted to:
  • [email protected]
301

When people encounter Lisp syntax for the first time

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前
message-square
26
fedilink
  • cross-posted to:
  • [email protected]
  • RecallMadness@lemmy.nz
    link
    fedilink
    arrow-up
    11
    ·
    3 个月前

    Threading is a great case for a macro.

    (-> x (* 2) (/ 3) (- 1))

    Is the same as (- (/ (* x 2) 3) 1)

    • Mika@piefed.ca
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      2
      ·
      3 个月前

      Sure it’s not like it has no uses, but it’s something languages have built-in as syntax sugar or operators, and you rarely need to built your own macro for anything.

      • Jerkface (any/all)@lemmy.ca
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        3 个月前

        deleted by creator

        • Mika@piefed.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 个月前

          What does it have to do with lisp?

          • Jerkface (any/all)@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            edit-2
            3 个月前

            deleted by creator

Programmer Humor@programming.dev

programmer_humor@programming.dev

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
Visibility: Public
globe

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

  • 1.32K users / day
  • 4.88K users / week
  • 9.21K users / month
  • 19K users / 6 months
  • 1 local subscriber
  • 27.6K subscribers
  • 1.99K Posts
  • 72.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org