on master help sign in
gall-guide: lesson 3 - remove helper core alias example
commit3610362deafc620569f6ff776f88a98778270fa5 authorTinnus Napbus <admin@tinnus-napbus.xyz> dateSun 5 Dec 2021, 23:49 (5 years ago) parent706e585
1 file changed+5−13
content/docs/userspace/gall-guide/3-imports-and-aliases.md+5−13
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:
112112```hoon
113113+* this .
114114 def ~(. (default-agent this %.n) bowl)
115− hc ~(. +> bowl)
116115```
117116
118−`this`, `def` and `hc` 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,
120−a virtual arm is not terminated with a `==`. You can define as many aliases as
121−you like. The three in this example are conventional ones you'd use in most
122−agents you write. Their purposes are:
117+`this` and `def` are the deferred expressions, and next to each one is the Hoon
118+expression it evaluates whenever called. Notice that unlike most things that
119+take _n_ arguments, a virtual arm is not terminated with a `==`. You can define
120+as many aliases as you like. The two in this example are conventional ones you'd
121+use in most agents you write. Their purposes are:
123122
124123```hoon
125124this .
@@ -136,13 +135,6 @@ def ~(. (default-agent this %.n) bowl)
136135This sets up the `default-agent` library we [described above](#default-agent),
137136so you can easily call its arms like `on-poke:def`, `on-agent:def`, etc.
138137
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−
146138## Additional cores
147139
148140While Gall expects a single 10-arm agent core, it's possible to include