Skip to content

Instantly share code, notes, and snippets.

View Ostkontentitan's full-sized avatar

Konstantin Otte Ostkontentitan

View GitHub Profile
@Ostkontentitan
Ostkontentitan / CoffeeMakingDomain.kt
Created March 19, 2018 15:12
Some drafts of a DSL for coffee making written in Kotlin for presentation purposes.
// DOMAIN OBJECTS
interface Blend {
val intensity: Intensity
val flavours: Set<Flavour>
}
object EspressoBlend : Blend {
override val intensity: Intensity = 10
override val flavours: Set<Flavour> = setOf(Flavour.I_AM_AWAKE)