Basic
. If if is be used then must appear else else boom~~~
. Less append, more reverse (not [xxxxx]++x but x:[xxxxxx]), haskell will walk through the first param
. Without variable but const
. Less ‘(’ ‘)’ and more ’ ’ (bar(a) == bar a)
. Func could join the params (div 2 1 == 2 `div` 1)
. Save your func in an awesome path, because the complier load func by path
. [a,b,c] == a : b : c: []
. [] != [[]] != [[][]]
. Index symbol : !! ([1,2,3]!!1 == 2)
. Can`t use on [] 
. Range [A…C]==[A,B,C]
. range [1,3…9]=[1,3,5,7,9] ; [‘A’,‘C’…‘Y’]=“ACEGIKMOQSUWY”
. lazy language, complier could ease the code
博客介绍了Basic语言的特性,如使用if时必须有else;采用较少追加、较多反转的方式;无变量只有常量;括号使用少;函数可连接参数;编译器按路径加载函数;介绍了列表表示、索引符号、范围表示等,还提到它是惰性语言,编译器可简化代码。
103

被折叠的 条评论
为什么被折叠?



