Skip to content

Instantly share code, notes, and snippets.

View tieskedh's full-sized avatar

Thijs de Haan tieskedh

View GitHub Profile
tieskedh / Welcome
Last active October 11, 2017 11:10

#Styleguide This is the style-guide of tornadoFX. This styleguide is different from normal styleguides in that it doesn't say where you should put the braces and where ou should put four spaces. This guide is used to talk about the things that really matter, like when to use which Kotlin-features and when to do what in the framework-implementation.

This guide has two segments. One segment which talks about the Kotlin-features and what to use. The other part is about when to do what in the framework.

// top level function
inline fun ifp(boolean: Boolean?, noinline statements: ()->Unit)
= NonReturningIfContinuation().ElseIfP(boolean, statements)
inline fun ifn(boolean: Boolean?, noinline statements: ()->Unit)
= NonReturningIfContinuation().ElseIfN(boolean,statements)
inline fun <reified T> retIfn(boolean: Boolean?, noinline statements: ()->T)
= ReturningIfContinuation<T>().ElseIfN(boolean,statements)
inline fun <reified T> retIfP(boolean: Boolean?, noinline statements: ()->T)
= ReturningIfContinuation<T>().ElseIfN(boolean,statements)

Keybase proof

I hereby claim:

  • I am tieskedh on github.
  • I am tieskedh ( on keybase.
  • I have a public key ASBC9IfpS--4-uF28_DdZIT4MQG7a9krT7T_bSgZ_9LNAgo

To claim this, I am signing this object:

tieskedh / openpgp.txt
Created October 15, 2016 02:05
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f0d679a2390991a2dccc79b6de149d16861f2da8]