Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Izkata
on June 19, 2019
|
parent
|
context
|
favorite
| on:
Things I learnt the hard way in thirty years of so...
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: