Skip to main content
4 events
when toggle format what by license comment
Sep 14, 2017 at 21:00 comment added starchild @BrianMcCutchon I considered it, and honestly I'd remove the default on data too, but I think it's subtle enough that it isn't obviously correct one way or the other. Making both the new parameters optional also has the benefit of being obviously "safe" in that it won't break existing usage - which is worth considering when refactoring code without tests.
Sep 14, 2017 at 6:55 comment added Brian McCutchon I would even remove the default None from data. Assuming that Node is only used from LinkedList (it should be), data will always be passed whatever is passed to insert. I suppose next would be None for the last node in the list.
Sep 12, 2017 at 19:18 review First posts
Sep 12, 2017 at 19:39
Sep 12, 2017 at 19:18 history answered starchild CC BY-SA 3.0