Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Phrodo_00
on June 19, 2019
|
parent
|
context
|
favorite
| on:
Algorithms as Objects
Worse, it opens the door for stuff like:
my_algorithm = MyAlgorithmClass() results = [0..100].parallelMap(lambda x: my_algorithm.run())
Sharlin
on June 19, 2019
[–]
Mandatory Rust evangelism: both of these examples would be forbidden at compile time in a language with affine (or linear) types ;)
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
my_algorithm = MyAlgorithmClass() results = [0..100].parallelMap(lambda x: my_algorithm.run())