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.