on master help sign in
incorporate hoon javascript analogies into glossary file
commit54eeb52080c0bb793040403b505900cb01eb3713 authorChristopher King <chris@arcturustech.com> dateTue 20 Jun 2017, 21:40 (9 years ago) parentf65ebc4
1 file changed+52
docs/about/glossary.md+52
docs/about/glossary.md+52
@@ -276,3 +276,55 @@ set of nouns in the second span is provably a subset of the first.
276276
277277> Why? It's fresh, it's different, it's new. And it's annoying. And it
278278> keeps you on your toes. And it's also just intuitively right.
279+
280+## Hoon/Javascript Analogies
281+
282+Below find a table of analogies between Hoon and Javascript terms that may be useful for learners. Note that these correspondences are mostly inexact and should serve only as guideposts on the path to
283+comprehending Hoon on its own terms.
284+
285+<table>
286+ <tr>
287+ <td><strong>Hoon Term</strong></td>
288+ <td><strong>Javascript Term</strong></td>
289+ </tr>
290+ <tr>
291+ <td>core</td>
292+ <td>the Map object</td>
293+ </tr>
294+ <tr>
295+ <td>arm</td>
296+ <td>a key-value pair in the Map object</td>
297+ </tr>
298+ <tr>
299+ <td>"formula"</td>
300+ <td>function invocation</td>
301+ </tr>
302+ <tr>
303+ <td>"subject"</td>
304+ <td>the invoked function and its scope</td>
305+ </tr>
306+ <tr>
307+ <td>=< ('tisgal')</td>
308+ <td>a function invocation as well as the invoked function and its scope</td>
309+ </tr>
310+ <tr>
311+ <td>|= ('bartis')</td>
312+ <td>function</td>
313+ </tr>
314+ <tr>
315+ <td>=| ('tisbar')</td>
316+ <td>declare a variable</td>
317+ </tr>
318+ <tr>
319+ <td>|- ('barhep')</td>
320+ <td>initialize a loop</td>
321+ </tr>
322+ <tr>
323+ <td>?: ('wutcol')</td>
324+ <td>initialize <strong>if</strong> statement</td>
325+ </tr>
326+ <tr>
327+ <td>:- ('colhep')</td>
328+ <td>somewhat similar to the "return" keyword in a much expanded form</td>
329+ </tr>
330+<table>