- About Scala
- In the Enterprise
- Scala Community
- Language Research
- In the Press
- The Scala Team
- Scala's Prehistory
- Contact Us
- Learning Scala
- Tour of Scala
- Scala API
- Setup & Getting Started
- Programming Guides
- Other Guides
- Code Examples
- Scala Developers
About ORMs, pluggability, LINQ, etc.
Disclaimer: this is idle talking. While still working on lib.web 0.2
(thin stateless web framework), I sometimes think about... for example,
forum written in scala.
Some forum installations would require thread view counters and/or
message ratings, others would not. These may be and should be
implemented as plugins. Plugins that adjust database structure during
their installation process by adding appropriate columns to messages table.
In Scala, this is naturally expressed via mixins; schematic idea is:
class Message(id: Int, authorId: Int, subj: String, text: String...)
trait Message(viewcount_count: Int)
trait Message(ratings_sum: Int, ratings_count: Int)
Its all fine (looks fine, at least) but it requires ORM support to be
efficient. I'd much prefer to have LINQ-like stuff to classic heavy ORM.
So here are questions:
1. What can you say about all these draft thoughts above?
2. I've googled "linq for scala" some months ago and found this topic
where some necessary support from compiler was discussed:
http://www.nabble.com/anything-like-LINQ--td14628918.html How is it
going and are there any chances to see LINQ-like project started in the
3. If someone would start it, please consider use-case I've shown above.