i've been considering moving from a function-based API to a property-based API for a class in my project. the class wraps a httpservletrequest and a httpservletresponse, and uses functions to access their values. i have been unable to make this work in an acceptable way, and i summarized some of the problems in a github issue:
https://github.com/tipsy/javalin/issues/55
would be great if someone could have a look and tell me if i've missed some kotlin features that could help