gpt4 book ai didi

ocaml - 缩进让打开 Mod in

转载 作者:行者123 更新时间:2023-12-04 13:33:18 24 4
gpt4 key购买 nike

有没有办法从 TypeRex 获得这种布局?

let alert ctx x = 
let open Alert in
Printf.printf "...Alert: type = %s, status = %s\n"
(Type.to_string (type_ x)) (status x);
flush stdout

我最终得到了这个,在我看来这不是最理想的

let alert ctx x = 
let open Alert in
Printf.printf "...Alert: type = %s, status = %s\n"
(Type.to_string (type_ x)) (status x);
flush stdout

最佳答案

Typerex 还没有实现缩进。我们仍在使用 tuareg 模式的缩进,但计划重新实现。

关于ocaml - 缩进让打开 Mod in,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10506728/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com