elm-book's People
elm-book's Issues
p120 input 内の順序
こんにちは!
p120 ~ p121 のコード内では
[ input [ value model.input, onInput Input ] []
と記載されていますが、 p121 onInput
では
[ input [ onInput Input, value model.input ] []
と参照されており、食い違っていますので統一した方が分かりやすいかと思います。
尚、 リポジトリ内 では後者となっています。
また、 p121 の onInput
の項 1. 2. での並び順も考慮する方が自然かなと感じました。
typo: p241 applocation
p241 の先頭行にtypoあり。
誤: Browser.applocationを使って
正: Browser.applicationを使って
P39「λ」記号が使えない
P39に「ラムダ記号(λ
、\
)を使って記述します。」とあるが、
\
の代わりにλ
を使用するとエラーになります。
> \n -> n < 0
<function> : number -> Bool
本文にある上のは実行可能。
同様に以下のように記載すると実行不可能。
> λn -> n < 0
-- PARSE ERROR ------------------------------------------------------------- elm
I was not expecting this arrow while parsing repl_value_1's definition.
3| repl_value_1 =
4| λn -> n < 0
^
An arrow should only appear in cases expressions and anonymous functions. Maybe
you want > or >= instead?
P15の記載通り、0.19
を使用しています。
> elm --version
0.19.0
青背景のコードが意図する実行方法が読者に明確ではない
第2版の際にご検討ください!
p65, p92, p93 などにでてくる青い背景のコードが
「ファイルに書いてもエラーになるし、そのままreplに打ち込んでもエラーになる」
という初見の人がけっこう筆者の意図を汲む必要がある感じになっています。
関数の定義は青背景にして、それ以下の message user1 -- Hello, Taro
みたいな実行例は白背景黒囲いの表記にしてreplで実行することを明示した方が混乱は少ないと思います。
P.76 << の使用例がコンパイルエラー
P.76 に記載されている <<
の使用例がコンパイルエラーになります。
showNumbersUntil =
String.join "," << List.map String.fromInt << List.range 1 max
最後の max
を削除すればコンパイル通ります。
p37 PARSE ERROR (elm repl の不具合)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.