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

Programming

16752 readers
234 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 [email protected]



founded 1 year ago
MODERATORS
 

New favorite tool ๐Ÿ˜

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 7 points 3 months ago (1 children)
[โ€“] [email protected] 2 points 3 months ago (2 children)
[โ€“] [email protected] 7 points 3 months ago (1 children)
[โ€“] [email protected] 2 points 3 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#

[โ€“] [email protected] 2 points 3 months ago (1 children)

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

[โ€“] [email protected] 3 points 3 months ago (1 children)

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

[โ€“] [email protected] 3 points 3 months ago

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