@@ -0,0 +1,64 @@
1+## Hoon/Javascript Analogies
3+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
4+comprehending Hoon on its own terms.
6+|Hoon Term |Javascript Term |
7+|--------------|----------------------------------------------------------------------------------------------------------------------------------------------|
8+|core |the Map object |
9+|arm |a key-value pair in the Map object |
10+|"formula" |function invocation |
11+|"subject" |the invoked function and its scope |
12+|=< ('tisgal') |takes two children, a function invocation as well as the invoked function and its scope (the Hoon terms "formula" and "subject" defined above)|
13+||= ('bartis') |function |
14+|=| ('tisbar') |declare a variable |
15+||- ('barhep') |initialize a loop |
16+|?: ('wutcol') |initialize if statement |
17+|:- ('colhep') |somewhat similar to the "return" keyword in a much expanded form |
21+ <td><strong>Hoon Term</strong></td>
22+ <td><strong>Javascript Term</strong></td>
26+ <td>the Map object</td>
30+ <td>a key-value pair in the Map object</td>
34+ <td>function invocation</td>
38+ <td>the invoked function and its scope</td>
41+ <td>=< ('tisgal')</td>
42+ <td>takes two children, a function invocation as well as the invoked function and its scope (the Hoon terms "formula" and "subject" defined above)</td>
45+ <td>|= ('bartis')</td>
49+ <td>=| ('tisbar')</td>
50+ <td>declare a variable</td>
53+ <td>|- ('barhep')</td>
54+ <td>initialize a loop</td>
57+ <td>?: ('wutcol')</td>
58+ <td>initialize <strong>if</strong> statement</td>
61+ <td>:- ('colhep')</td>
62+ <td>somewhat similar to the "return" keyword in a much expanded form</td>