【发布时间】:2011-11-29 12:11:47
【问题描述】:
如果可能的话,我宁愿使用let ... and ... and ... in 而不是嵌套的let,但是普通的 let 语法不允许这样用于相互依赖的表达式。
不允许:
let encrypt password =
let seed = int 16
and keys = xlat seed (length password)
and plaintext = map code (explode password) in
map2 logxor plaintext keys
OCaml 是否与 Lisp 的 let* 等效,允许这样做?
【问题讨论】: