Are function arguments condtants or variable ? #1428
sanjayjain159
started this conversation in
General
Replies: 2 comments 1 reply
-
|
You cannot do that. I believe you are referring to "inout" parameters from other languages? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
But what about passing a mutable variable as parameter? Feels like "inout".. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Typically in a programming language, the function arguments are local variables. But as far as a noobie like me knows Janet treats function arguments a b c declared as in, (defn f [a b c] ...) as constants. How to get them as local variables whose value can be changed for example with set?
Beta Was this translation helpful? Give feedback.
All reactions