4 ms·
I actually prefer the first of those - I find it easy to read than the second one - probably because the calls are chained rather than being nested.
by arethuza 14y ago
I actually prefer the first of those - I find it easy to read than the second one - probably because the calls are chained rather than being nested.
- mercurial 14y agoAlternatively, you could do this: g.rdb_conn.table('todos').get(todo_id).run() On the other hand, this form ties the request to the connection, which neither the current API or my original suggestion do.