2 ms·
For this article, maybe the author could have used Swift. The key idea of this article is to use a recursive tree structure to describe a future task. To build
by zffr 7y ago
For this article, maybe the author could have used Swift. The key idea of this article is to use a recursive tree structure to describe a future task. To build that tree structure with swift, one could use recursive enums with associated values (ex: https://www.pointfree.co/episodes/ep26-domain-specific-languages-part-1 https://www.pointfree.co/episodes/ep26-domain-specific-langu...).