Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Cipherd@lemmy.ml to Programmer Humor@programming.dev · 3 个月前

functions

lemmy.ml

message-square
119
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
661

functions

lemmy.ml

Cipherd@lemmy.ml to Programmer Humor@programming.dev · 3 个月前
message-square
119
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml

cross-posted from: https://lemmy.ml/post/39334581

  • [object Object]@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    3 个月前

    Remarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things.

    • Jankatarch@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 个月前

      Isn’t it more like
      foo(){…} -> (define foo (lambda ()))
      tbf?

      • [object Object]@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        3 个月前

        In Emacs Lisp, you use one of these two:

        (defun funcname (arg1 arg2) (+ arg1 arg2))

        (lambda (arg1 arg2) (+ arg1 arg2))

        — with the latter typically being an argument to another function or macro.

      • stammi@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        3 个月前

        In clojure it’s (def (fn [])) or short (defn []).

    • Jankatarch@lemmy.world
      link
      fedilink
      arrow-up
      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: !programmer_humor@programming.dev

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.

  • 663 users / day
  • 4.55K users / week
  • 7.61K users / month
  • 17.2K users / 6 months
  • 198 local subscribers
  • 30.1K subscribers
  • 2.16K Posts
  • 83.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org