on master help sign in
gall-guide: lesson 3 - remove helper core alias example
3610362Tinnus Napbus
content/docs/userspace/gall-guide/3-imports-and-aliases.md+5−13
@@ -112,14 +112,13 @@ A virtual arm in an agent often looks something like this:
112```hoon
112```hoon
113+* this .
113+* this .
114 def ~(. (default-agent this %.n) bowl)
114 def ~(. (default-agent this %.n) bowl)
115− hc ~(. +> bowl)
116```
115```
117
116
118−`this`, `def` and `hc` are the deferred expressions, and next to each one is the Hoon
117+`this` and `def` are the deferred expressions, and next to each one is the Hoon
119−expression it evaluates whenever called. Notice that unlike most things that take _n_ arguments,
118+expression it evaluates whenever called. Notice that unlike most things that
120−a virtual arm is not terminated with a `==`. You can define as many aliases as
119+take _n_ arguments, a virtual arm is not terminated with a `==`. You can define
121−you like. The three in this example are conventional ones you'd use in most
120+as many aliases as you like. The two in this example are conventional ones you'd
122−agents you write. Their purposes are:
121+use in most agents you write. Their purposes are:
123
122
124```hoon
123```hoon
125this .
124this .
@@ -136,13 +135,6 @@ def ~(. (default-agent this %.n) bowl)
136This sets up the `default-agent` library we [described above](#default-agent),
135This sets up the `default-agent` library we [described above](#default-agent),
137so you can easily call its arms like `on-poke:def`, `on-agent:def`, etc.
136so you can easily call its arms like `on-poke:def`, `on-agent:def`, etc.
138
137
139−```hoon
140−hc ~(. +> bowl)
141−```
142−
143−This makes it easier to call a function in a _helper core_. We'll introduce
144−helper cores later, so don't worry about this for now.
145−
146## Additional cores
138## Additional cores
147
139
148While Gall expects a single 10-arm agent core, it's possible to include
140While Gall expects a single 10-arm agent core, it's possible to include