Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我觉得Hy太棒了!计划使用它,甚至可能破解它。
我注意到支持类型注释,但显然仅适用于变量,最多支持函数参数。似乎无法键入注释函数(或方法)返回值。
这个潜在的功能是为未来计划的吗?或者它只是被认为不实用或目前不值得努力?
继续伟大的工作!
据我所知,它们已实施,只是没有记录。语法是
(defn foo ^int [x] (+ x 1))
声明类型的返回值int。
int