Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion 【R5RS scheme】C-lang like loop macros
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hidekazu IWAKI  
View profile  
 More options Sep 28 2012, 9:33 pm
Newsgroups: comp.lang.lisp
From: Hidekazu IWAKI <i.hidek...@gmail.com>
Date: Fri, 28 Sep 2012 18:33:22 -0700 (PDT)
Local: Fri, Sep 28 2012 9:33 pm
Subject: Re: 【R5RS scheme】C-lang like loop macros
OK. you're right

But my plan is how to write programs in functional languages for imperative programmers.
I want to make a beginner course for non-functional 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))

>    Output:

>    0

>    1

>    2

>    3

>    4

>    5

>    Result:

>    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

> programming.


 
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.