Re: [hibernate-dev] Hibernate Search DSL ideas

2009-11-20 Thread Navin Surtani
On 20 Nov 2009, at 12:10, Emmanuel Bernard wrote: > I am very against the idea of runtime failures. That's the whole > point of a type safe fluent API. Yeah - understandable, the fewer exceptions thrown the better I guess. > I would rather put the effort on the framework side than on the >

Re: [hibernate-dev] Hibernate Search DSL ideas

2009-11-20 Thread Emmanuel Bernard
I am very against the idea of runtime failures. That's the whole point of a type safe fluent API. I would rather put the effort on the framework side than on the developer side. A string query language or a dynamic language is better if you are not bothered with helping the developer to write

[hibernate-dev] Hibernate Search DSL ideas

2009-11-20 Thread Navin Surtani
Heya, I was just thinking last night about a couple of things about the DSL. Mainly, instead of having lots of return types, for example you created a BooleanContext and a Negatable version if the Occur clause was MUST. I was wondering, instead of having separate contexts, is it easier to h