Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

(You can read this article in English.) Ruby の開発版にパイプライン演算子(pipeline operator)が試験的に導入されましたが、いろいろあってプチ炎上になっています(チケット)。 せっかくの機会なので、パイプライン演算子の歴史を調べてみました。付け焼き刃の調査なので、間違ってたら教えてください。 パイプライン演算子とは こんな感じのものです。 x |> f |> g |> h # h(g(f(x))) と同じ意味 h(g(f(x))) という関数適用の式は、関数が呼ばれる順序(f→g→h)と、プログラムの字面上の順序(h→g→f)が逆でわかりにくいとされます。この問題は、特に、関数が大きくなったときに顕著になります。 wonderful_process_h( marvelous_process_g( fantastic_process
My early thinking about this syntax is it's a very narrow use-case. Is it anything more than . and no need for parentheses in some rare cases? There is also the RHS assignment which feels very unnatural to me. I think there is nothing wrong with having parentheses for Range, I think they actually help readability. Martin's desugared version which works today is actually shorter and I believe most
Belt BeltというBuckleScriptの標準ライブラリが開発されています。 https://bucklescript.github.io/bucklescript/api/Belt.html (2018/04/09時点では、ベータ版です) もちろんReasonMLのバックエンドはBuckleScriptなので、ReasonMLから利用することができます! ReasonMLから触ってみたので、簡単なまとめと感想をメモしておきたいと思います。 各APIの使用方法については細かく触れずに、おおまかな方向性だけをまとめます。 構成モジュール Id Array SortArray MutableQueue MutableStack List Range Set Map MutableSet MutableMap HashSet HashMap Option といったモジュールが用意されてい
おはようございます。今日も一日、よろしくお願いします。 おはようございます。今日も一日、よろしくお願いします。 大事なことなので二度コピペしました。おはようございます、 OCaml ビギナーです。先日、私のコードの diff を眺めていた CVO(最高美夢責任者)が 「くっ、我がダークヴィムマスターの戦闘力を以てしても皆目検討が付かぬ……これが神の創りし大駱駝(※ OCaml のことらしい)の力……」 とつぶやかれておりましたので、 「っふ……駱眼(※ OCaml のコードを見抜く第三の目。慈悲はない)を持たぬ者にはわからんだろう……ククク、俺の右眼が疼くわ!(花粉の季節はつらいです)」 と突き放しておきましたが、はて具体的に何がわからなかったのか聞きそびれました。ところで私は、 OCaml の実用的なコードに含まれる見慣れない記号の多さに面食らった覚えがあります。最近になってやっとだいた
Shibuya.XSS techtalk #10 の発表資料です。
precedencegroup PipePrecedence { associativity: left higherThan: AssignmentPrecedence lowerThan: TernaryPrecedence } infix operator |>: PipePrecedence func |> <Input, Output> (lhs: Input, rhs: (Input) -> Output) -> Output { return rhs(lhs) } // 普通ver let storyboardName = storyboardName() let storyboard = UIStoryboard(name: storyboardName, bundle: nil) let viewController = storyboard.instantiateVie
Onchain is the New Online Monday, 02 Sep 2024 · 7 min read · thoughts gm! It’s been a long while. 👋 Onchain summer is here. A new wave of consumer crypto apps is coming. 🕶️ Continue reading → How to Replace the Bytecode of Deployed Solidity Contracts Sunday, 07 Aug 2022 · 4 min read · ethereum solidity solhint What if there is a hardcoded contract address in another contract you need to test? Ex
TL;DR: Elixir - a language that positively celebrates the use of macros I’ve been picking up some Elixir so I can try my hand at a new project I want to build using the Erlang/OTP ecosystem. Elixir uses lots and lots of compile-time macros. The language’s pervasive use of macros is unprecedented in my experience. Most (all?) of the core features of Elixir (its special forms) are (non-overridable)
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く