Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dataflow
on May 28, 2020
|
parent
|
context
|
favorite
| on:
The use of `class` for things that should be simpl...
Not necessarily. What I said can apply to even a class with with 1 method that takes no arguments... though you might often recognize it as a more sophisticated kind of iterator:
class BFS(object): def __init__(self, origin): self.origin = origin; ... def next(self): ...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: