<〜在Elm 0.16.0中给我一个编译时错误 [英] <~ in elm 0.16.0 gives me a compile time error

查看:58
本文介绍了<〜在Elm 0.16.0中给我一个编译时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对Elm来说是新手,但想和<〜运算符一起玩。看来当我运行elm-make,<〜时,它不被识别为运算符,并且出现错误

Very new to Elm but wanted to play around with the <~ operator. It seems when I run elm-make, <~ it is not recognized as an operator, and I get the error


找不到变量<〜

是否已弃用(我在 elm-lang.org/docs/syntax的文档中看到了#mapping )。我使用不正确吗?这是我的代码片段,不会编译-

Has this been deprecated ( I see it in the docs at elm-lang.org/docs/syntax#mapping ). Am I just using it incorrectly? Here is my code snippet that will not compile-

sqrtSig : Signal number
sqrtSig = sqrt <~ Mouse.x


推荐答案

是,< 〜 已被删除(遵循此讨论

Yes, <~ and ~ were removed following this discussion

这篇关于&lt;〜在Elm 0.16.0中给我一个编译时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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