You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Fast, Simple, Fully Typed JavaScript from the FutureReScript is a robustly typed language that compiles to efficient and human-readable JavaScript. It comes with a lightning fast compiler toolchain that scales to any codebase size. module Button = { @react.component let make = (~count) => { let times = switch count { | 1 => "once" | 2 => "twice" | n => n->Int.toString ++ " times" } let text = `Cli
Reason 面白そうだったので、ちょっと触った感想を残す。 まとまってなかったり、情報が古かったりする可能性もあるので注意下さい。 1. BuckleScript Reason を知る前に、まずは BuckleScript を知る必要があった。 What & Why - Intro - BuckleScript Concepts Overview - Intro - BuckleScript BuckleScript は、OCaml Compiler の為の新しい Backend ( 中間形式からコードを生成する部分 ) で、OCaml ( or Reason ) を受け取って、Javascript を生成する。 OCaml と Javascript のスムーズな統合 を志向しており、相互運用性を高めるためのアイデアが各所に散りばめられている。 Readable な Javascript
Hello! This particular page hash has moved to . Please update the URLs to reflect it. Thanks! type schoolPerson = | Teacher | Director | Student(string); let greeting = person => switch (person) { | Teacher => "Hey Professor!" | Director => "Hello Director." | Student("Richard") => "Still here Ricky?" | Student(anyOtherName) => "Hey, " ++ anyOtherName ++ "." }; type schoolPerson = Teacher | Direct
これだけで導入は完了。Windows でも問題なし。素晴らしい。 エディタ支援 Editor Plugins - Reason VS Code が推奨されているので、素直にそれを使う。 これまでは、以下のプラグインを利用していたが、 https://marketplace.visualstudio.com/items?itemName=freebroccolo.reasonml 今後は公式に作られている以下プラグインの方が良いだろう。 https://marketplace.visualstudio.com/items?itemName=jaredly.reason-vscode サンプル体験 コードの書き心地をするだけなら、Playground が用意されているが、実際の開発をイメージするためにローカルで始める。 プロジェクト作成 $ bsb -init sample_1206 -the
Hello! This particular page hash has moved to . Please update the URLs to reflect it. Thanks!
関数型 AltJS には様々ありますが、今 ReasonML が熱いです。多分。 Reason Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems とある通り、 OCaml の影響を強く受けた言語となっております。 そして開発元は Facebook です。 Facebook といえば React ですよね? 開発元が同じなら多分相性もいいでしょう、という事で、その二つを組み合わせて使ってみましょう。 なお、 Facebook という事でライセンスが気になるかと思いますが、 Reason のライセンスは MIT でした。 ReasonReact 「開発元が同じなら相性もいい」というのはいかにも思考の浅い印象の意見ですが、強ち間違いとも言えません。 ReasonReactという公式のバイン
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く