Re: [DISUESS] Kotlin DSL in Camel, thoughts?

2020-02-05 Thread Omar Al-Safi
Hi Luca, I have seen Kotlin DSL in Camel K, however since I am not familiar with Camel K, can we get the DSL to work for both, Camel and Camel K? Regards On Wed, Feb 5, 2020 at 3:41 PM Luca Burgazzoli wrote: > Some initial work for a kotlin dsl is being done at camel-k and I had not > so much

Re: [DISUESS] Kotlin DSL in Camel, thoughts?

2020-02-05 Thread Luca Burgazzoli
Some initial work for a kotlin dsl is being done at camel-k and I had not so much time to really improve it so any help would be appreciated. --- Luca Burgazzoli On Wed, Feb 5, 2020 at 3:34 PM Zoran Regvart wrote: > Hi Omar, > I think it's a great idea, as Guillaume mentioned we need to make s

Re: [DISUESS] Kotlin DSL in Camel, thoughts?

2020-02-05 Thread Zoran Regvart
Hi Omar, I think it's a great idea, as Guillaume mentioned we need to make sure that it's also easy to maintain. Some older Cameleers might remember the Scala DSL that was a bit of a pain to maintain (see also Ceylon and all languages we dropped in v3). zoran On Wed, Feb 5, 2020 at 2:56 PM Omar A

Re: [DISUESS] Kotlin DSL in Camel, thoughts?

2020-02-05 Thread Omar Al-Safi
Wow awesome, I didn't relalize that have metadata models (I only aware of the components metadata), thanks Guillaume for the info! I'd prefer the way of generating it as well. On Wed, Feb 5, 2020 at 3:02 PM Guillaume Nodet wrote: > In order to have an easy DSL maintained, I think we should aim t

Re: [DISUESS] Kotlin DSL in Camel, thoughts?

2020-02-05 Thread Guillaume Nodet
In order to have an easy DSL maintained, I think we should aim to generate it from the meta model. We now have a nice java pojo model for it, so it should be easier to use any kind of method to generate 90% of the DSL. This would alleviate most of the concerns about maintainability imho. Guillaume

[DISUESS] Kotlin DSL in Camel, thoughts?

2020-02-05 Thread Omar Al-Safi
Hello folks, In FOSDEM, we were asked if we have a Kotlin DSL, although the Java DSL could be used in Kotlin out of the box, however a DSL written in Kotlin's way, could be an additional choice for our users. However, I must say, I am not really sure about its feasibility to have it, in terms of m