一种描述python程序的语言,具有简洁的高阶注释,比如“(a->a)>[a]>[a]”,但你不敢称它们为“类型”
rightarrow的Python项目详细描述
注释
这种语言是根据以下概念构建的:
- 命名类型: int , long , float , complex , str , unicode , 文件 , 您的类名在这里 ,…
- 列表: [int] , [[long]] ,…
- 元组: (int,long) , (float,(int,regex)) ,…
- 字典: {string:float} , {(str,str):[complex]} ,…
- 联合体: int long float , str file ,…
- "一切顺利": ??
-
函数,在此函数之后命名此库:-)
- str ->; int
- (int) ->; int
- (int,int) ->; int
- ((int,int)) ->; int
- (str文件) ->; 某些类
- (int,*[str]) ->; [(str,int)]
- (int,*[int], **{int: str}) ->; str
- 对象: 对象(self_type,field1:int,field2:str, …)
-
多态类型(其中
~a
,
~b
,
~c
范围超过任何其他类型
类型。语法可能会更改;实际上没有偏好)
- ~a ->; ~a
- [~a] ->; [~a]
- ((~a,~b)) ->; ~a