4 ms·
> parameters appear in the method body anyway Captured variables too appear in the method body. How do I tell those apart?
by Joker_vD 5y ago
> parameters appear in the method body anyway
Captured variables too appear in the method body. How do I tell those apart?
- rabarbers 5y agoYou need to carefully pick the right brackets () or {}. You can define an algorithm with both of the brackets, the difference is that () does not capture the parameter, but {} captures the parameter which is used inside the brackets. When You define a property, then property body is automatically interpreted as defined in {} brackets.