Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 856 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 856 Bytes
description Introduction to limbs and wings in Hoon, which provide the primary mechanism for accessing data from the subject without traditional scope or environment concepts.
layout
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

Limbs and wings

One feature Hoon lacks: a context that isn't a first-class value. Hoon has no concept of scope, environment, etc. An expression has exactly one data source, the subject, a noun like any other.

  • Limbs - A limb is used to resolve to a piece of data in the subject. A wing is thus a resolution path into the subject.
  • Wings - In Hoon we use 'wings' to extract information from the subject. A wing is a list of limbs (including a trivial list of one limb).