- CommonLisp:
- hash-table
- Scheme:
- hash-table (SRFI-69), hashtable (R6RS Scheme)
- Haskell:
- Map
- OCaml:
- Hashtbl, Map
- SML:
- hash_table (sml-nj-lib)
| 原文: | Async in C# and F#: Asynchronous gotchas in C# |
|---|---|
| 原文著者: | Tomas Petricek (@tomaspetricek) |
| 翻訳者: | @pocketberserker |
2月に、私は毎年恒例のMVPサミット ── Microsoft が MVP のために主催するイベント ── に出席しました。私はボストンとニューヨークを訪問する機会を利用して、二つの F# に関する講演と Channel9 lecture about type providers の収録を行いました。他のすべての活動(しばしばパブで他の F#er を議論に巻き込んだり、朝まで長い睡眠)にもかかわらず、私はいくつかの講演に参加し果せました。
Original: "Callbacks are imperative, promises are functional: Node's biggest missed opportunity" by James Coglan
Translated by Yuta Okamoto (@okapies)
- 訳者は JavaScript や Node.js に関する専門知識がほとんどありません。識者のツッコミをお待ちしております。「◯◯が分からない」等も歓迎です。
- 元記事から構成を一部変更しています。また、関数型プログラミングに関する記述のうち、議論の骨子に絡まないものは省略しています。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var hello = ""; | |
| var enumerable = | |
| EnumerableEx.Create<int>(async Yield => { | |
| await Yield.Return(100); | |
| await Yield.Return(200); | |
| hello = "hello world"; | |
| await Yield.Return(300); | |
| }); | |
| Console.WriteLine(enumerable.ElementAt(1)); // 200 | |
| Console.WriteLine(hello); // empty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is gist. | |
| There are many like it, but this one is mine. | |
| It is my life. | |
| I must master it as I must master my life. | |
| Without me gist is useless. | |
| Without gist, I am useless. |
NewerOlder