ygrechuk
Joined 11 years ago
Karma
13
Submissions
4
Member since
May 14
Joined 11 years ago
def f_iter(many, args):
while True:
m = f(many, args)
if m:
yield m
else:
raise StopIteration
...
for m in f_iter(many, args):
# do stuff with m
This way you’re isolating all the initialization logic, error handling, etc. And you can focus on your domain logic in your client code.> If you don't get vaccinated, and you get sick, then you infect everyone else. You don't have the right to choose to infect other people.
I would NOT be against public schools mandating vaccines in order for children to attend school. Same for places of employment.