Git Product home page Git Product logo

Comments (6)

stevedonovan avatar stevedonovan commented on July 19, 2024 2

I've fleshed it out a little. Yes, variables are variables. But the mutable default that is so common confuses people.

from gentle-intro.

stevedonovan avatar stevedonovan commented on July 19, 2024

Good point. I'm trying to speak to the usual sense of 'variable' in programming, but it's more the mathematical sense here. And 'variable' vs 'constant' is the important thing.

from gentle-intro.

eddyb avatar eddyb commented on July 19, 2024

@stevedonovan They're the same meaning! It's just that the defaults differ, like with references.

from gentle-intro.

andradei avatar andradei commented on July 19, 2024

Should this be closed with the changes you made? They seems good enough.

from gentle-intro.

pannous avatar pannous commented on July 19, 2024

"immutable variable" is an oxymoronic contradiction in normal english.

from gentle-intro.

eddyb avatar eddyb commented on July 19, 2024

@pannous In some sense "variable" is short for "variable binding" - the value inside is the variable, and what you're mutating is the "variable binding", not the value (which varies for a different reason than mutation - e.g. function arguments can differ between calls).

from gentle-intro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.