https://kotlinlang.org logo
#feed
Title
# feed
f

fanie

01/06/2019, 10:49 PM
I started developing a wrapper around KotlinPoet with a goal of replacing builder style method chaining with expressive Kotlin awesomeness. https://github.com/iFanie/KotlinComposer The project is only a few hours old, so any feedback would be much appreciated.
👍 3
d

Dominaezzz

01/06/2019, 10:54 PM
1) A bit infix heavy IMO. 2) I think if one is in a compose scope, you shouldn't have to call
compose a
function again. 3) Why not contribute the DSL directly to kotlinpoet?
2
👍 3
c

Czar

01/06/2019, 11:07 PM
2.1) having
compose a
all over the place doesn't read very well in terms of aesthetics.
👍 4
f

fanie

01/06/2019, 11:14 PM
@Dominaezzz @Czar I don't see a way around it once modifiers get included. Is there a reason to avoid lots of infix functions? I'll do contribute once I have something complete and useful.
o

orangy

01/06/2019, 11:19 PM
I’d generate all the DSLs, using KotlinPoet of course.
🧌 4
8 Views