元数据读取器语法何时从#^更改为^? [英] When did the metadata reader syntax change from #^ to ^?

查看:130
本文介绍了元数据读取器语法何时从#^更改为^?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前(Clojure v1.6)你可以用两种方式给出类型提示:

  ^ float xs 





 #^ floats xs 

根据 Clojure ^ floats vs.#^ floats? ,后者是传统语法,前者是当前的首选形式。



解决方案

^ 宏字符的简要历史




Currently (Clojure v1.6) you can give a type hint two ways:

^floats xs

#^floats xs

According to Clojure ^floats vs. #^floats?, the latter is legacy syntax, and the former is the current preferred form.

When did that change happen?

解决方案

A brief history of the ^ macro character

这篇关于元数据读取器语法何时从#^更改为^?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆