← 返回技术雷达
Hacker News tech

Bespoke: A programming language for people who say please

Hacker News 热议:Bespoke: A programming language for people who say please(97 赞 / 25 评论,来源 blog.hofstede.it)

一句话概要

Modern programming languages are full of violence, vulgar abbreviations, and naked imperatives. Bespoke is a statically typed alternative in which exceptions…

原文开头节选

We kill processes, abort transactions, throw exceptions, break out of loops, and execute instructions. We acquire locks without asking, mutate values without apologising, and order the machine to return as though it were a Labrador. Even the gentler languages expect us to address the runtime in a sequence of terse imperatives:

let carriageCount = 0 ; carriageCount = 42 ; console . log ( carriageCount ); No salutation. No explanation. Not so much as a much obliged .

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. Informally it is known as The Queen’s Code : Victoria’s, naturally; the etiquette committee has yet to approve the twentieth century. Source files use the .charming extension, and the compiler reserves the right to be disappointed in you.

The implementation is, at present, somewhat less advanced than the etiquette manual. This is entirely appropriate: one does not rush a formal introduction.

(以上为原文节选,完整内容见下方”原文来源”)

这条动态今日登上 Hacker News 首页(97 赞 / 25 评论,来源 blog.hofstede.it)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。

原文来源: Hacker News

相关服务