Wikipedia

Write-only language

Also found in: Encyclopedia.

In computer humor, a write-only language is a pejorative term for a programming language alleged to have syntax or semantics sufficiently dense and bizarre that any routine of significant size is too difficult to understand by other programmers and cannot be safely edited.[1] Similarly, write-only code is source code so arcane, complex, or ill-structured that it cannot be reliably modified or even comprehended by anyone with the possible exception of the author.[1]

Languages that were derided as write-only include APL, Dynamic debugging technique (DDT), Perl,[2] Forth, Text Editor and Corrector (TECO),[3] Mathematica, IGOR Pro and regular expression syntax used in various languages. Attributes that these languages have in common include a large set of operators and a syntax which encourages, or at least permits, the writing of very dense code. Some also have syntaxes which are very different from other languages, and some use different characters sets. The code below for example is Conway's Game of Life as written in APL2:[4]

'⎕',∊N⍴⊂S'←⎕←(3=T)∨M∧2=T←⊃+/(V⌽¨⊂M),(V⊖¨⊂M),(V,⌽V)⌽¨(V,V←1 -1)⊖¨⊂M' 

See also

References

  1. ^ a b "write-only language". Jargon File. Retrieved 2015-03-28.
  2. ^ "Write Only Language". Retrieved 2015-03-28.
  3. ^ Finseth, Craig A. (2006). The Craft of Text Editing. Lulu. ISBN 978-1-4116-8297-9.
  4. ^ "Conway's Game of Life in one line of APL". Dr.Dobbs. February 2006. Archived from the original on 2015-03-24. Retrieved 2015-03-28.
This article is copied from an article on Wikipedia® - the free encyclopedia created and edited by its online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of Wikipedia® encyclopedia articles provide accurate and timely information, please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.

Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.