>variables
>"immutable"
>>56972807
>array index starts at 1
>mutables
>invarianle
>an "array" of variables
>they're all the same type
>Jeeves! These variables don't seem to vary!
>Oh, I'm terribly sorry, sir. Those are constants. I'll bring it down to the workshop right away. I think we have some casts that will make them work as you want them to.
>>56972871
Kek heres your (You)
>offsets instead of indices
>string
>it's 1 char long
>null-terminated string
>>56973059
>null existing
>conflating mutable cells with variables
f x = x + 1
x is a variable, it varies.
>>56974131
What?
In an immutable language X = X + 1 would throw a parse error
In FX = X + 1, FX is not the same variable as X
>>56972807
>>56974774
It's not about the file size this time, check again.
>>56974759
A - 10
V - 10
Thanks YIFY!
>>56974727
That's a function definition.
f is a function, x is its parameter, x + 1 is its value.
>>56975063
Yeah, but the function takes the (immutable) x as an argument, it doesn't return it changed.
I'm just gonna repost that. Yikes.
>>56974727
Also this
>In an immutable language X = X + 1 would throw a parse error
is totally wrong. It's a perfectly valid definition in Haskell, modulo uppercase. It might even have a non-divergent value for some types.data Peano = Z | S Peano
instance Num Peano where
Z + y = y
(S x) + y = S (x + y)
...
>>56975077
Yeah, no shit, but x is not a constant. It's variable.
ex1 = f 4
ex2 = f 5
Here x takes on the different values 4 and 5.
"Variable" does not mean "mutable cell."
>>56975149
I think I'm just not cut out for this shit, anon, you're bending my mind.
>>56975220
I'm just arguing semantics, really.
A mutable cell is a mutable cell. It's analogous to the registers in processors and RAM, and that's useful. Procedural programmers were calling them "variables" since before I was born. I can't very well change that. Same with the conflation of "functions" with procedures that produce values.
This overloading of terms won't go away because of the autism of an anon on some taiwanese wallpainting forum, but I reserve the right to object when someone says that variables aren't variables and functions aren't functions.
>objects
>recursive
>it's possible that it only runs once
>>56975220
Immutable variables are variables that you get to define exactly once. After that, you can't give them a new value, or increment them, or anything like that.
The reason they're variables is because they can still have different values during different executions of the same program, or different calls to the same function.
>>56972807
>an array of ints is not an array of Integers
>>56972849
Thanks for reminding me I work with ColdFusion every day in 2016