this post was submitted on 06 Jul 2025
17 points (100.0% liked)

programming

258 readers
1 users here now

  1. Post about programming, interesting repos, learning to program, etc. Let's try to keep free software posts in the c/libre comm unless the post is about the programming/is to the repo.

  2. Do not doxx yourself by posting a repo that is yours and in any way leads to your personally identifying information. Use reports if necessary to alert mods to a potential doxxing.

  3. Be kind, keep struggle sessions focused on the topic of programming.

founded 2 years ago
MODERATORS
 

If they didn’t exist in a language would you be upset? Any obvious things that can’t be done without global variables? I don’t think there is, but I could have missed something. I know that Haskell doesn’t have them and I think some newer ones like V also don’t have them.

you are viewing a single comment's thread
view the rest of the comments
[–] m532@lemmygrad.ml 5 points 1 week ago (1 children)
[–] huf@hexbear.net 4 points 1 week ago (1 children)

did you need singletons or some other kind of "hidden" global?

[–] m532@lemmygrad.ml 4 points 1 week ago

Yes, but they were immutable