Hacker News new | ask | show | jobs
by SanFranManDan 3472 days ago
Agreed.

In the functional world, there obviously aren't objects and structs are not the same things as objects in the OOP sense.

Even then the key part of a ORM is the "R". ORMs allow you to utilize a RDBMS transparently as if you were manipulating the OOP objects.

A couple of projects that this is closer to than Django ORM.

https://github.com/elixir-ecto/ecto -> "Database Wrapper" http://www.yesodweb.com/book/persistent -> "data store interface" https://hackage.haskell.org/package/groundhog -> "Database Mapping"

1 comments

When your structs can have functions on them that modify the original struct's data, the line between object and "really really object like struct" is very thin.

I appreciate this guy's work, but DSLs make more sense to me than orms in golang.