13
submitted 2 months ago* (last edited 2 months ago) by HaraldvonBlauzahn@feddit.org to c/programming@programming.dev

The text is a bit abstract. Disallowing mutation of values can have a lot of practical advantages, not unlike disallowing global variables. For example, strings and tuples are immutable objects in Python, and this makes it possible that they can be used in dictionaries as keys.

Here is an tutorial/example which shows how changing physical entities can be modeled in this way, with the example of describing a rocket: https://aphyr.com/posts/312-clojure-from-the-ground-up-modeling .

This has a lot in common with how things are described in physics, for example.

you are viewing a single comment's thread
view the rest of the comments
[-] somegeek@programming.dev 2 points 2 months ago

Clojure is the peak of language design.

this post was submitted on 06 Jun 2026
13 points (100.0% liked)

Programming

28322 readers
691 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 3 years ago
MODERATORS