「お願いします」と頼むプログラミング言語Bespoke、コンパイラは召使いではない

Bespoke: A programming language for people who say please

「お願いします」と頼むプログラミング言語Bespoke、コンパイラは召使いではない

プロセスをkillし、例外をthrowする粗暴なプログラミング文化に抗議する、礼儀正しい静的型付き言語Bespokeの提案。コンパイラへの依頼は「Dear Compiler, Would you be so kind as to...」と丁寧に述べ、変数の変更には謝罪を要求。型は「An Integer Number」のように正式名称で書き、真偽値はQuite TrueとPatently Falseの2つ。マナー違反には診断B-101「Blunt Imperative」が出され、コンパイルが停止する。

Dear Compiler, If it causes you no undue hardship, might we trouble you to update the value of carriageCount to 42? Much obliged.
  1. vova_hn2

    ちょっと関連する話として、2011年の「If PHP Were British」というのがある - https://aloneonahill.com/blog/if-php-were-british/

    お気に入りの部分はこれ:

    would_you_mind {

    // Code here

    } actually_i_do_mind (Exception £e) {

    // Politely move on

    cheerio('Message');

    }

    過去のHNでの議論:

    - 2019年5月28日 - コメント46件 - https://news.ycombinator.com/item?id=20029836

    - 2022年12月2日 - コメント366件 - https://news.ycombinator.com/item?id=33828509

  2. dalmo3

    ClaudeLangをやろう:

    THIS DISTINCTION MATTERS: myBool IS ABSOLUTELY RIGHT

    LAND HONEST TAKE "Hello world"

    CAVEAT:

    THE GAP IS REAL "Unexpected error"

    THINK ABOUT THAT FOR A SECOND

  3. broken-kebab

    「A Regrettable Circumstance」は「Exception」よりも genuinely 良い説明だと思うよ

  4. az09mugen

    アイデア自体はintercalが最初に開発したもので、そこへの言及が一切ない:

    https://en.wikipedia.org/wiki/INTERCAL

  5. 220hertz

    自動ガベージコレクションは前提とされておらず、正式に庭師を雇うことになる。

    素晴らしい。

この日のほかの記事

2026-09-10