Sciss/LucreSTM — Issue #2: To sys or not to sys
Author: Sciss
Created: 2012-01-16 10:42:20+00:00
State: open
Labels: Thinking

trait Region[ S <: Sys[ S ]]

versus

object Setup[ S <: Sys[ S ]] {
trait Region { ... }
}

this is a rather crucial choice, as it affects the helper traits `Decl`, `Compound`, as well as the serialization wiring. a potential advantage of the latter is to have type-safe extractors, e.g. for expression matching? A potential downside is that composability may suffer from path-dependent types.