I’m working on the kotlin vertx wrapper and I’m having a bit of a time here. Alex T’s script showed values being passed to the script (Vertx object, Verticle object, etc). Of course this seems to violate normal kotlin syntax and certainly confused IDEA. He then created an instance of the script with:
clazz.getConstructors()!!!!.newInstance(vertx, container, this)
Is there any capabilities for Kotlin to do something like this? There is not a whole lot of documentation on scripts and I’m sort of assuming they’re regular old kotlin files with a main function. But it would be fantastic for kotlin to be able to have launching scripts for vertx.