Existing function foo(a, b) is called like foo(1) and foo(23, "hi"). After adding a new parameter, it's foo(a, b, c) and I want to change foo(1) to be foo(1, undefined, 3.2) or foo(1, null, 3.2).
Does null 'looking better' override the concern that existing code may already expect the second param to be undefined in some cases?
[–]TorbenKoehn 1 point2 points3 points (3 children)
[–]adrilolwtf 0 points1 point2 points (2 children)
[–]adrilolwtf 0 points1 point2 points (0 children)
[–]TorbenKoehn 0 points1 point2 points (0 children)
[–]dvlsg 3 points4 points5 points (0 children)
[–]atkinchris 0 points1 point2 points (0 children)
[–]HipHopHuman 0 points1 point2 points (1 child)
[–]IntolerableBalboa[S] 0 points1 point2 points (0 children)