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

It still needs to turn the query results back into objects.


More languages are getting destructuring semantics built into them. I think this problem is slowly taking care of itself. You write a query that renames everything to your struct names, or you write a mapping that does it, then let the programming language do its thing, instead of a third party library doing it.

Essentially your code for talking to the database starts to look more and more like the code that deals with JSON responses, which all just look like quasi-idiomatic code in the programming language.




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

Search: