Lobsters | 原文链接 | 2026-09-06 收录

写给「会说请字的人」的编程语言:礼貌至极的 Bespoke 女王代码

来源: blog.hofstede.it — 2026-09-04

概述

一篇带英式幽默的讽刺文章。作者吐槽编程语言里的粗鲁口吻——我们 kill 进程、abort 事务、throw 异常、break 循环,把机器当拉布拉多一样命令 return。于是他提出 Bespoke,一门静态类型、讲求礼仪的语言(俗称「女王代码」):每次请求必须以「Dear Compiler」这类称谓开头、说明来意、再以致谢收尾,变更状态要附上道歉,控制流也有仪式化的开场白。实现进度目前远落后于它的礼仪手册,编译器还「保留着对你失望的权利」。

核心要点

金句

I therefore propose Bespoke, a statically typed and uncompromisingly civilised programming language for developers who believe that machine execution should never come at the expense of good manners.
返回 Lobsters 首页