News for hackers. Stuff that matters.
Re:Programming Patterns I Like by epse on Saturday June 29, 2019 @03:35AM (#20311305)
But that requires you to have the output assigned to a variable even without valid input..
Re:Programming Patterns I Like by quadcore on Saturday June 29, 2019 @03:39AM (#20311322)
This whole guard/validation thing is a fabrication of the mind. Because early returns do returns something on an invalid input. If anything, those validations should be asserts/exceptions.