this post was submitted on 21 May 2024
204 points (96.4% liked)

Programming

17117 readers
63 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

New favorite tool ๐Ÿ˜

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Linkerbaan@lemmy.world 6 points 4 months ago (1 children)
[โ€“] FizzyOrange@programming.dev 2 points 4 months ago (2 children)
[โ€“] Linkerbaan@lemmy.world 7 points 4 months ago (1 children)
[โ€“] AdamBomb@lemmy.sdf.org 2 points 4 months ago

let is also used to declare values in better languages than JavaScript, such as Haskell and ML family languages like OCaml and F#

[โ€“] moreeni@lemm.ee 2 points 4 months ago (1 children)

About the let keyword, which is used to declare a variable.

[โ€“] FizzyOrange@programming.dev 3 points 4 months ago (1 children)

I thought so, but why do they object? Do they want Bash's error-prone implicit variable declaration?

[โ€“] moreeni@lemm.ee 3 points 4 months ago

They, most probably, just didn't like the name.