Re: [LANG] Porting to Kotlin

2020-05-11 Thread Isira Seneviratne
On Mon, May 11, 2020, 1:20 PM Gilles Sadowski wrote: > 2020-05-11 1:01 UTC+02:00, Isira Seneviratne : > > On Sun, May 10, 2020 at 8:24 PM Gilles Sadowski > > wrote: > > > >> Hi. > >> > >> Le dim. 10 mai 2020 à 15:34, Isira Seneviratne a > >> écrit : > >> > > >> > I hope my answer was helpful. I

Re: [LANG] Porting to Kotlin

2020-05-11 Thread Gilles Sadowski
2020-05-11 1:01 UTC+02:00, Isira Seneviratne : > On Sun, May 10, 2020 at 8:24 PM Gilles Sadowski > wrote: > >> Hi. >> >> Le dim. 10 mai 2020 à 15:34, Isira Seneviratne a >> écrit : >> > >> > I hope my answer was helpful. If you need any more information, please >> let >> > me know. >> >> Please e

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Isira Seneviratne
On Sun, May 10, 2020 at 8:24 PM Gilles Sadowski wrote: > Hi. > > Le dim. 10 mai 2020 à 15:34, Isira Seneviratne a > écrit : > > > > I hope my answer was helpful. If you need any more information, please > let > > me know. > > Please explain, by example, how we would go in order to provide a Kotl

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Matt Sicker
This sounds similar to our Log4j Kotlin API. It’s an adapter library to integrate with Kotlin-specific features or APIs (they provide a mini standard library on top of Java like how Groovy does). On Sun, May 10, 2020 at 09:54 Gilles Sadowski wrote: > Hi. > > Le dim. 10 mai 2020 à 15:34, Isira Se

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Gilles Sadowski
Hi. Le dim. 10 mai 2020 à 15:34, Isira Seneviratne a écrit : > > I hope my answer was helpful. If you need any more information, please let > me know. Please explain, by example, how we would go in order to provide a Kotlin release? IIUC, your PR does not cover all of [Lang] (?). Might be worth

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Isira Seneviratne
On Sun, May 10, 2020, 8:18 PM Xeno Amess wrote: > Hi. > If you mean this then I will be a +1 instead. > Just, do not convert anything original java code to kotlin, and make sure > pure java user will not be affected. > That shouldn't be necessary. And I don't really mind if you add some kotlin

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Xeno Amess
Hi. If you mean this then I will be a +1 instead. Just, do not convert anything original java code to kotlin, and make sure pure java user will not be affected. And I don't really mind if you add some kotlin util class dealing with kotlin things. Isira Seneviratne 于2020年5月10日周日 下午9:33写道: > On S

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Isira Seneviratne
I hope my answer was helpful. If you need any more information, please let me know. On Sun, May 10, 2020, 7:03 PM Isira Seneviratne wrote: > > > On Sun, May 10, 2020, 6:55 PM Gilles Sadowski > wrote: > >> Hi. >> >> In what consists the "porting"? Could you give an example? >> > > Of course. >

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Isira Seneviratne
On Sun, May 10, 2020, 6:55 PM Gilles Sadowski wrote: > Hi. > > In what consists the "porting"? Could you give an example? > Of course. Extension functions and properties are a language feature of Kotlin, which allow a function/property to be called from a variable as if it was part of the orig

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Gilles Sadowski
Hi. In what consists the "porting"? Could you give an example? If it's straightforward and can be automated, it might be worth creating the port for all the Commons components (as part of the release) in a move that can potentially expand our team of developers (if Kotlin programmers are willing

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Isira Seneviratne
I've updated all the methods to call Apache Commons Lang methods. On Sun, May 10, 2020, 4:25 PM Isira Seneviratne wrote: > > > On Sun, May 10, 2020, 4:02 PM Paul King wrote: > >> There are a number of approaches you could take. Why not just a whole >> bunch >> of methods that map directly to ex

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Isira Seneviratne
On Sun, May 10, 2020, 4:02 PM Paul King wrote: > There are a number of approaches you could take. Why not just a whole bunch > of methods that map directly to existing functionality, e.g.: > > fun Boolean?.isNotTrue() = BooleanUtils.isNotTrue(this) > fun Boolean.toStringYesNo() = BooleanUtils.toS

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Paul King
There are a number of approaches you could take. Why not just a whole bunch of methods that map directly to existing functionality, e.g.: fun Boolean?.isNotTrue() = BooleanUtils.isNotTrue(this) fun Boolean.toStringYesNo() = BooleanUtils.toStringYesNo(this) It might be possible to automate and whe

Re: [LANG] Porting to Kotlin

2020-05-10 Thread Isira Seneviratne
Since the original attachments did not come through, I've created a temporary GitHub repository for the proposed library, for anyone who is interested: https://github.com/Isira-Seneviratne/commons-lang-kt.git -- Isira Seneviratne isirase...@gmail.com

Re: [LANG] Porting to Kotlin

2020-04-25 Thread Miguel Munoz
This sounds like a good idea to me, too. I'm not a contributor, by I'd be happy to join in and help. -- Miguel Muñoz On Friday, April 24, 2020, 11:17:44 PM PDT, Isira Seneviratne wrote: On Sat, Apr 25, 2020, 11:45 AM Isira Seneviratne wrote: > > > On Sat, Apr 25, 2020, 11:22 AM Paul

Re: [LANG] Porting to Kotlin

2020-04-24 Thread Isira Seneviratne
On Sat, Apr 25, 2020, 11:45 AM Isira Seneviratne wrote: > > > On Sat, Apr 25, 2020, 11:22 AM Paul King > wrote: > >> The attachments didn't seem to come through. I am not on the commons PMC >> but I would be -1 for changing the existing functionality. > > That isn't my intention. They already >

Re: [LANG] Porting to Kotlin

2020-04-24 Thread Isira Seneviratne
On Sat, Apr 25, 2020, 11:22 AM Paul King wrote: > The attachments didn't seem to come through. I am not on the commons PMC > but I would be -1 for changing the existing functionality. They already > work fine for Java and work already as Apache Groovy extension methods: > > @Grab('org.apache.comm

回复: [LANG] Porting to Kotlin

2020-04-24 Thread Xu Jin
-1 from me. I HATE kotlin. I'm lombok user. 发件人: Paul King 发送时间: 2020年4月25日 13:52 收件人: Commons Developers List 主题: Re: [LANG] Porting to Kotlin The attachments didn't seem to come through. I am not on the commons PMC but I would be -1 for changing th

Re: [LANG] Porting to Kotlin

2020-04-24 Thread Paul King
The attachments didn't seem to come through. I am not on the commons PMC but I would be -1 for changing the existing functionality. They already work fine for Java and work already as Apache Groovy extension methods: @Grab('org.apache.commons:commons-lang3:3.10') import org.apache.commons.lang3.St

Re: [LANG] Porting to Kotlin

2020-04-24 Thread Isira Seneviratne
On Mon, Apr 20, 2020 at 8:41 PM Isira Seneviratne wrote: > Hi all, > > I'm a new contributor, but I've been using Commons Lang for a while now, > and I feel that porting Commons Lang to Kotlin would be very useful for > Kotlin development, as a lot of its methods (particularly those in the > Ut

[LANG] Porting to Kotlin

2020-04-20 Thread Isira Seneviratne
Hi all, I'm a new contributor, but I've been using Commons Lang for a while now, and I feel that porting Commons Lang to Kotlin would be very useful for Kotlin development, as a lot of its methods (particularly those in the Utils classes) are not present in the Kotlin standard library, and these c