encyclopegia.org

Higher order message

A higher order message (HOM) in a computer programming language is a form of higher-order programming that allows messages that have other messages as arguments.[src] The concept was introduced at MacHack 2003 by Marcel Weiher and presented in a more complete form in 2005 by Marcel Weiher and Stéphane Ducasse.[src] Loops can be written without naming the collections looped over, higher order messages can be viewed as a form of point-free or tacit programming.[src]

A higher order message (HOM) in a computer programming language is a form of higher-order programming that allows messages that have other messages as arguments.[src] The concept was introduced at MacHack 2003 by Marcel Weiher and presented in a more complete form in 2005 by Marcel Weiher and Stéphane Ducasse.[src] Loops can be written without naming the collections looped over, higher order messages can be viewed as a form of point-free or tacit programming.[src] ==Examples== In ordinary Smalltalk code, without using HOM, obtaining a collection of the employees that have a salary of 1000 would be achieved with the following code: salaried := employees select: [ :each | each hasSalary: 1000 ] However, using HOM, it can be expressed as follows: salaried := employees select hasSalary: 1000.[src] Here, select is a higher order message, and hasSalary: is understood to be called on the select message itself, rather than on its result.[src] The Smalltalk language was not modified to implement this feature.[src] Instead, select returns a message that reifies the select send, which then interprets the hasSalary: message.[src] Another example is the use of future message sends in the Croquet Project: (cube future:1000) addRotationAroundY:10.[src] In this example, the future: message causes the addRotationARoundY: message to be sent to the cube object after 1 second.[src] ==Adoption== The reference implementation in Objective-C leverages the trait that in Objective-C, objects that don't understand a message sent to them, still get it delivered in a special hook method, called forward: .[src] Higher order messaging was implemented in a number of languages that share this feature including Ruby and Smalltalk.[src] ECMAScript Harmony's Proxies documentation specifically mentions higher order messages as an application for their Catchall Proxies.[src] ==Similar concepts in other languages== The programming language J distinguishes between verbs and adverbs.[src] Adverbs modify the functioning of verbs.[src] This is similar to higher order messages (the adverbs) modifying the messages that follow (the verbs).[src] In the Croquet example above, the addRotationAroundY: .[src] message is still sent and has its normal meaning, but its delivery is modified by the future:1000 message, it will be sent sometime in the future.[src] ==References==[src]

21 sentences · 21 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Higher order message." encyclopegia.org, 2026, https://encyclopegia.org/wiki/higher-order-message. Accessed 30 November 2026.

Chicago

"Higher order message." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/higher-order-message.

APA

encyclopegia.org. (2026). Higher order message. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/higher-order-message

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Order of the British Empire

stub · references available

Order of Railroad Telegraphers

stub · references available

Corinthian order

stub · references available

Order of African Redemption

stub · references available

Order of the Golden Spur

stub · references available

National Order of the Cedar

stub · references available

Honorary Order of the Yellow Star

stub · references available

Order of the Oak Crown

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1333872735 · 0.5 · snapshot enwiki-001333872735

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.