When it comes to web development, my experience with records as the
data structure behind an API was not positive. We used records a lot
at the beginning, but their use declined with every new project.
Erlangs biggest advantage in web development is flexibility. Records
are inherently inflexible. If you use records across multiple modules,
you make code updates that change your data structure way more
problematic. One module knows a record to be one thing, another knows
it to be another and everything crashes until all modules are updated.
In web development those code updates are quite frequent, since most
of what a website backend does is move data around.
Sergej