As a matter of fact, I already started writing a custom generator that
overrides bits of the Java generator, but I quickly ran into major
problems. Those problems are related to Ceylon's Java interoperability, for
example I get errors when I override TableImpl, stating that some abstract
methods are not correctly implemented, while in fact they are. Also, I had
errors while calling super constructors, but once again it's a problem on
our side. I'll submit this to the Ceylon team and see if it can be fixed.

If I can get interesting results, I may submit a pull request in the future
;-).

Regarding \i, basically uppercase identifiers are for types (classes,
interfaces, type parameters), while lowercase is for values (objects,
functions, parameters, variables etc). Ceylon tries very hard to have a
syntax as regular as possible, so enforcing those constraints helps a lot,
unfortunately it can be a little annoying when using Java code...
Le 25 août 2015 8:39 AM, "Lukas Eder" <[email protected]> a écrit :

> That was quick! :)
> Thank you very much for your nice words in the article.
>
> Very interesting bit about the \i prefix. That's a bit of a quirk indeed.
> Do you know the background of Ceylon's requiring attributes to start with a
> lower-case letter? What are upper-case letters reserved for?
>
> An interesting bit would be to implement Ceylon source code generation,
> the way we have done for Scala, before. We know whether columns are
> nullable, so we could perhaps generate the "?" on each type to indicate
> whether the column is indeed nullable. I wonder if that will work from an
> interoperability perspective - it would certainly add lots of value to the
> Ceylon integration. I have created a feature request for a CeylonGenerator:
> https://github.com/jOOQ/jOOQ/issues/4497
>
> It would also handle the \i issue by using a different default for the
> generator strategy - and perhaps by generating Ceylon types instead of
> java.lang types.
>
> Some of those findings are definitely worth being referenced from the jOOQ
> manual in a new jOOQ+Ceylon section. I have registered an issue for this:
> https://github.com/jOOQ/jOOQ/issues/4496
>
>
> In any case, thanks a lot for this write-up! This is very insightful.
> Looking forward to hearing further feedback from you :-)
>
> Cheers,
> Lukas
>
> 2015-08-24 19:36 GMT+02:00 Bastien Jansen <[email protected]>:
>
>> Here it is:
>> http://bjansen.github.io/ceylon/2015/08/24/ceylon-plus-jooq-equals-heart.html
>>
>> Le lundi 24 août 2015 11:53:40 UTC+2, Lukas Eder a écrit :
>>>
>>>
>>>
>>> 2015-08-24 11:26 GMT+02:00 <[email protected]>:
>>>
>>>> I also plan on writing a blog post on how to get started with Ceylon
>>>> and jOOQ, I'll keep you updated here :)
>>>>
>>>
>>> Wonderful, looking forward to reading that!
>>>
>>> Cheers,
>>> Lukas
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "jOOQ User Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "jOOQ User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jooq-user/uPBvwmx-IQQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to