You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, you're talking about Immutability. When you're using one or another language, you should know what types are immutable and what aren't.
Using Lua 'functional programming library' doesn't mean that it'll change rules of this "game":
strings/numbers/nil/bool are "immutable" (they're passed by value)
other types aren't (they're passed by reference and no "COW"y or similar technics are presented)
So I guess the answer is: "functional programming library" isn't something that'll make Lua fully "Functional Programming Language", but'll give you convenient shortcuts that are similar to FP technics. That's something you should keep in mind for all non-fp languages.
Hi :)
Does your documentation lack passages about the core feature of functional programming or does your implementation?
The text was updated successfully, but these errors were encountered: