r/functionalprogramming • u/Deonisos • Jul 19 '23
Question When does Variable Capture happen in substitution?
I want to program a compiler for uni and have to use the locally nameless representation. I just don't get the point of locally nameless. Is it just a functional programming problem or does variable capture happen in java or kotlin too?
4
Upvotes
View all comments
Show parent comment
2
u/Deonisos Jul 19 '23
I never encountered variable capture ever, I work part time as a web dev. It shouldn't be a problem if you just name your parameters and variables differently or am I mistaken? Maybe I just don't have enough experience yet or haven't encountered those situations yet.