Kotlin: The Next Frontier for Modern (Meta) Programming
Amanda Hinchman-Dominguez @hinchman_amanda Kotlin, TornadoFX and Metaprogramming
Kotlin: The Next Frontier for Modern (Meta) Programming Kotlin, - - PowerPoint PPT Presentation
Kotlin: The Next Frontier for Modern (Meta) Programming Kotlin, TornadoFX and Metaprogramming Amanda Hinchman-Dominguez @hinchman_amanda Thomas Nield TornadoFX a JavaFX Framework written in Kotlin Characteristics of Functional Languages
Amanda Hinchman-Dominguez @hinchman_amanda Kotlin, TornadoFX and Metaprogramming
Thomas Nield
Functions are treated as first class citizens Functions have no side-effects Metaprogrammin g capabilities
Piq: cesarloose
sources targets
another
Flickr: Susan Lucas Hhoffman
Flickr: Chris Radcliffe
@interface
@Retention and its targets
prime for reflection
carries through to the JVM
the salt is out of my reach. If I reach
avoiding knocking the drinks over I could probably get it without brushing over my
the salt please.
Flickr: Joe King
passed when the terminal parameter is a function
Kotlin-based DSLs to create complex hierarchies in a declarative way
Function as a Parameter
Function as a Parameter Parameter types Return type Receiver type
Parameter types Return type Receiver type
Function as a Parameter
pass objects like models to other classes
Controller unique to a smaller subset of instances in an application
Type parameter used in receiver and return types
Type parameter declaration – any Component may be passed
“reified” declares that this type parameter will not be erased at runtime
TORNADO FX SUITE
Carl Walker @bekwaminc Edvin Syse @edvinsyse Thomas Neild @thomasneild9727 Ruckus T Boom @ruckustboom