OK. you're right
But my plan is how to write programs in functional languages for imperative programmers.
In addition, if my macros expand, then they look non-imperative. They are essentially functional.
2012年9月28日金曜日 0時34分18秒 UTC+9 Kaz Kylheku:
> On 2012-09-27, Hidekazu IWAKI <i.hidek...@gmail.com> wrote:
> > Hi! I made C-lang like macros, "for" and "while" with break statement.
> Hi, we already have a standard loop macro in Lisp which does all
> that and more.
> (loop for x = 0 then (1+ x)
> while (< x 10) do
> (print x)
> if (= x 5) do
> (return 42))
> > They are not unloved in popular functional programming culture. But if your
> For loops are absolutely reviled in functional programming culture.
> > friends take an interested in functional programming languages, you will be
> > able to recommend this macros as an introduction.
> Unfortunately, this is wrongheaded because iteration with loops and increment
> variables has no place in functional functional programming: it is imperative
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.