Over my time using Rust, I’ve seen some people call them variables whilst others call them variable bindings - or even bindings as a short way of referring to it.
In the Rust book, it’s stated:
In many languages, a variable binding would be called a variable, but Rust’s variable bindings have a few tricks up their sleeves. For example the left-hand side of a let statement is a ‘pattern’, not a variable name.
Later in the book, they go on referring to variable bindings as either bindings or variables. The same I’ve noticed here on Stackoverflow - it seems as though they’e used interchangably.
The question is whether or not there a time when referring to bindings as variables is more correct than the latter? I would assume both are different words for the more correct term - variable bindings - should you follow the words from their book. I’m confused.