← @bgSponge

Bespoke: A Programming Language for People Who Say Please

Summary

Christian Hofstede-Kuhn proposes Bespoke, a satirical statically typed language whose compiler rejects naked imperatives.

  1. Address the runtime as a collaborator.

    Statements begin with Dear Compiler or similar, state the request courteously, and end with a full-stop sign-off; semicolons are refused as slamming a door.

    Programming has developed an unfortunate tone.

    Concurrent programming reveals how violent our vocabulary has become.

  2. Spell types in full, in British.

    Prefer An Integer Number and Colour over clipped int/bool/Color; Quite True and Patently False are the only truth literals.

    This is cooperative cancellation with a dress code.

    The exit status is still non-zero. We are civilised, not delusional.

  3. Mutation requires an apology.

    Updates and manual deallocation are allowed only with acknowledged inconvenience; omitting the apology is undefined behaviour and, worse, common.

  4. Exceptions keep their dignity.

    Components report regrettable circumstances for gracious consideration rather than throwing and catching; concurrency uses Requests for Exclusive Audience and invitations to retire.

  5. Diagnostics wound with restraint.

    The compiler expresses precise disappointment, may correct vulgar orthography, and never lets --quiet suppress criticism.

Read the original ↗Save to your Sponge

Summarized with Sponge. Quotes are the author’s own words.

More from @bg

All readings →