okr765
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Cipherd@lemmy.ml to Programmer Humor@programming.dev · 22 天前

functions

lemmy.ml

message-square
116
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
644

functions

lemmy.ml

Cipherd@lemmy.ml to Programmer Humor@programming.dev · 22 天前
message-square
116
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml

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

  • [object Object]@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    21 天前

    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
      21 天前

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

      • [object Object]@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        21 天前

        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
        ·
        21 天前

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

    • Jankatarch@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      21 天前

      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.

  • 1.72K users / day
  • 3.67K users / week
  • 8.92K users / month
  • 18.2K users / 6 months
  • 1 local subscriber
  • 27.8K subscribers
  • 1.76K Posts
  • 58.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org