Håvard Fossli
Feb 24, 2017 · 1 min read

What do you think, should the swift compiler allow for declaring the type of throwable functions or not? I would love to write

func loadSearchData(matching query: String) throws SearchError -> Data {

instead of

func loadSearchData(matching query: String) throws -> Data {

but only as an opt-in feature…

    Håvard Fossli

    Written by

    iOS Developer @Agens