Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It'll be fun when we get first-class generators and you can write a simple, imperative function and no helper types and still use this type signature :)



Oh that's really neat, I didn't know about that


Wow, that’s some really great stuff :)


Yeah, in my case I did code.chars().filter_map(...), where it returns a Some() at the end of each complete token. But generators would definitely be a little cleaner!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: