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

For languages that don't (and depending on the usage, maybe ones that do), I'd like to throw out another possibility for those who haven't seen it before: Fluent interfaces

  draw_rect(5, 10).at(5, 6)
  draw_rect().from(5, 6).to(10, 16)
It's one I'd be careful with though, as it can be easy to end up with something less readable.


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

Search: