我是Haskell的新手,此刻真正困扰我的是为什么制作库的人添加了调用的函数fst,snd而不是像(first和)那样使用(普通)名称second.后者的名字有什么问题?
fst
snd
first
second
我个人觉得这些缩写可笑:"为什么snd,为什么不呢?sec,scnd或scd或为什么不?fir,frst,ft或frt?" 它只是缺乏风格.(但再次 - 这是个人观点)
sec
scnd
scd
fir
frst
ft
frt
convention haskell function
convention ×1
function ×1
haskell ×1