Skip to content

Instantly share code, notes, and snippets.

@mlaster
mlaster / Config.swift
Created March 27, 2019 02:44
Flattened hierarchical config
private protocol MutableConfigProtocol: ConfigProtocol {
var key1: String { get set }
var key2: Int { get set }
}
private protocol ConfigLayerProtocol {
var key1: String? { get }
var key2: Int? { get }
}