Hi,

  Despite the title and content of this email, this is a serious, non
joking (i.e. brainfuck) question.

After studying
https://github.com/rplevy/swiss-arrows/blob/master/src/swiss/arrows.clj for
a bit, it hit me:

-> and ->> are special cases of forth machines, where there is a stack,
which always has exactly one item.

Thus, when we have something like
(-> init
  instr1
  instr2
  ... instr k ... )

what happens is that "init" is pushed onto the stack, then for each $i$, we
pop the top item off the stack, pass it to (instr i), then push the value
back on the stack.


Now, if take a few steps back and squint, we ask: why is it that we only
have one item on the stack? why not multiple items on the stack -- and now,
suddenly, we are approaching forth.

Thus, in a completely serious question -- is there any clojure
threading-macro DSL basically provides a forth-like?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to