https://kotlinlang.org logo
#getting-started
Title
# getting-started
t

Tmpod

09/06/2020, 4:02 PM
Hey! Not sure if this is the right place, but I wanted to know if there's any way to do a sort of annotation with argument alias. What I mean with this is, is there a way to somehow make
@foo
an alias of
@annotation(withArgument)
without having to make an annotation processor of sorts. The reason I'd like to do this is because I'm making a little library that uses kx.ser and I wanted to make a shorter, more idiomatic alias for
@Serializable(with=SomeSerializer::class)
, as that is quite a verbose annotation to put on fields. Is this possible at all?