Code Review: Shadowing #3290
Closed
cd155
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Personally, I see no reason to make |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the
isValidParen
, it has a variable name the firstxs
. Inside of let expression, there is a local functionisValidParenHelper
, it has the secondxs
.I have two following questions:
xs
shadowed by the secondxs
?x:xs
toy:ys
to avoid confusion. I just wonder what will you do and what is a good practice?Beta Was this translation helpful? Give feedback.
All reactions