会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Modest opinions
by a humble autodidact
公告
日历
导航
博客园
首页
新随笔
新文章
联系
订阅
管理
2008年7月21日
Another F# gotcha
摘要: let str = "blah" match input with | str -> // input = "blah" ? | _ -> // otherwise 这样写是不对的, str在这个位置并不会被bind到变量str上,而是会和任何输入匹配,匹配的结果进入新的变量str。str在它的scope(the match clause)中遮蔽str。应该这样写: match...
阅读全文
posted @ 2008-07-21 10:11 yushih
阅读(178)
评论(0)
推荐(0)
博客园
© 2004-2025
浙公网安备 33010602011771号
浙ICP备2021040463号-3