Closed dearlordylord closed 4 months ago
Why to use let
if in the code snippets variables are not being changed?
That's a big topic (why not use DeepReadonly<> for every structure then?), but the goal of the PR is consistency. There's a satellite PR that makes everything const
. The point is that in the README, let
and const
are intermixed for no apparent reason.
thanks!
I noticed let and const are used interchangeably in README. For consistency, I'd like to propose to use either/or. The previous PR https://github.com/jquense/yup/pull/2226 was about changing all
let
s toconst
s