摘要:
Inspired by Wikipedia... In type theory terms; A type is an abstract interface. Types generally represent nouns, such as a person, place or thing, or 阅读全文
posted @ 2019-06-05 19:40
zzfx
阅读(206)
评论(0)
推荐(0)
摘要:
最近看swift的范型和typeclass很辛苦,一点也摸不着头绪; 所以总结了以下类型系统的运算法则,以简化类型的转化、组合、变换等规则; is-a has-a use-a like-a as-a extension-a assign-a like-a-default 一、类型分类: 1、norm 阅读全文
posted @ 2019-06-05 18:46
zzfx
阅读(176)
评论(0)
推荐(0)
摘要:
一、具体类型 基本类型: class struct enum 组合类型: Tuples function 容器类型: struct<—— 二、抽象类型: protocol typeclass Generic 阅读全文
posted @ 2019-06-05 16:41
zzfx
阅读(238)
评论(0)
推荐(0)
摘要:
系统与领域都是一个小世界观 有什么东西组成; 结构是什么; 怎么运行; 阅读全文
posted @ 2019-06-05 15:59
zzfx
阅读(182)
评论(0)
推荐(0)
摘要:
Ability of an organism to take different shapes is polymorphism in bio world. A simplest definition in computer terms would be, handling different dat 阅读全文
posted @ 2019-06-05 11:20
zzfx
阅读(423)
评论(0)
推荐(0)