@d6 @alderwick Do you know what these types of routines are called? When they work sort of like funnels? The string painting and printing are other examples, someone is asking me by email and I don't think we've ever found a name for those?
Conversation
Notices
-
Devine Lu Ator (neauoire@merveilles.town)'s status on Sunday, 01-May-2022 23:29:48 CEST Devine Lu Ator
-
Kartik Agaram (akkartik@merveilles.town)'s status on Sunday, 01-May-2022 23:29:47 CEST Kartik Agaram
@neauoire @d6 @alderwick Ah, I see.
So you have two routines sharing a single body. Maybe both together are a single multi-headed routine?
There's also some similarity with optional arguments. Like if you had a flag that decided whether or not you run the first part of a function.
-
Devine Lu Ator (neauoire@merveilles.town)'s status on Sunday, 01-May-2022 23:29:47 CEST Devine Lu Ator
@akkartik @d6 @alderwick they share the same tail
-
Kartik Agaram (akkartik@merveilles.town)'s status on Sunday, 01-May-2022 23:29:47 CEST Kartik Agaram
@neauoire @d6 @alderwick Tail, body. Depends on how long it is and how many legs it has, right? 😄
-
Devine Lu Ator (neauoire@merveilles.town)'s status on Sunday, 01-May-2022 23:29:47 CEST Devine Lu Ator
@akkartik @d6 @alderwick It jumps to its tail once, return midway, and then runs the tail again.
-
Kartik Agaram (akkartik@merveilles.town)'s status on Sunday, 01-May-2022 23:29:47 CEST Kartik Agaram
@neauoire @d6 @alderwick Oh. The first execution of JMP2r returns from `@get-bound`, and the second returns from `get-bounds`.
Wow.
Maybe this is like an inner function? Like this pseudocode?
fn get-bounds(a, b) return @get-bound(a), @get-bound(b) end
Of course, that ignores the interesting mechanism you're pointing out. Perhaps what you want to do is focus on the mechanism rather than the result.
-
Kartik Agaram (akkartik@merveilles.town)'s status on Sunday, 01-May-2022 23:29:48 CEST Kartik Agaram
@neauoire @d6 @alderwick Can you elaborate on what get-ruler does?
-
Devine Lu Ator (neauoire@merveilles.town)'s status on Sunday, 01-May-2022 23:29:48 CEST Devine Lu Ator
@akkartik @d6 @alderwick it returns two characters forming a decimal string. But this function isn't really important, here's another one like it, notice how it does not return but falls through to the next routine
-
Devine Lu Ator (neauoire@merveilles.town)'s status on Sunday, 01-May-2022 23:30:20 CEST Devine Lu Ator
@akkartik @d6 @alderwick if you ever think of a name that you think would fit for these routines, I'd love to hear it :)
-