Eric E Moore <[EMAIL PROTECTED]> writes:
> "Eric G. Miller" <[EMAIL PROTECTED]> writes:
>> In C, statements are executed in order. I'm not too up on
>> functional languages, but I seem to recall they need special syntax
>> to execute statements sequentially.
>
> Not really. top level forms in a s
"Eric G. Miller" <[EMAIL PROTECTED]> writes:
> The C and Scheme functions are essentially identical.
Well, one important difference is that the scheme standard requires
that the language support an infinite number of tail calls.
(define (countdown x)
(cond
((<= 0 x)
(write x) (newlin
On Mon, Jan 20, 2003 at 12:07:31PM -0500, David Z Maze wrote:
> [EMAIL PROTECTED] (Robert Land) writes:
> > On Fri, Dec 13, 2002 at 11:23:43AM -0500, Derrick 'dman' Hudson wrote:
> >> "imperative" and "procedural" are the same thing, and C is a prime
> >> example. It is such because the structure
[EMAIL PROTECTED] (Robert Land) writes:
> On Fri, Dec 13, 2002 at 11:23:43AM -0500, Derrick 'dman' Hudson wrote:
>> "imperative" and "procedural" are the same thing, and C is a prime
>> example. It is such because the structure of a C program is a
>> collection of procedures which start with "main
On Fri, Dec 13, 2002 at 11:23:43AM -0500, Derrick 'dman' Hudson wrote:
> On Fri, Dec 13, 2002 at 03:17:42PM +0100, martin f krafft wrote:
> | also sprach Nori Heikkinen <[EMAIL PROTECTED]> [2002.12.13.1443 +0100]:
> | > what do you mean by "functional"? even though i have quite limited
> | > exper
On Mon, Dec 16, 2002 at 02:17:05PM -0500, David Teague wrote:
>...
> Craig and others
>
> Having "undesirable" featuers such as maintaining state or having
> dynamic scoping, does not make a language not be functional. The
I'll agree to disagree on that semantic point. (You could say that
you've
On Sun, 15 Dec 2002, Craig Dickson wrote:
> Date: Sun, 15 Dec 2002 09:16:43 -0800
> From: Craig Dickson <[EMAIL PROTECTED]>
> To: Debian Users <[EMAIL PROTECTED]>
> Subject: Re: OT: functional languages (was: Politics of Java)
>
> Colin Watson wrote:
>
> > Y
Colin Watson wrote:
> You can pass function pointers around in C happily enough. I appreciate
> it's less theoretically elegant than having functions as first-class
> citizens, and that it doesn't allow as much compile-time checking, but
> does it really limit you?
Yes, it does. C function pointe
On Sat, Dec 14, 2002 at 06:32:43PM -0500, David Teague wrote:
> On Fri, 13 Dec 2002, Deryk Barker wrote:
> > After all, you *can* do FP in C or Pascal - it's just a lot more work.
>
> Pascal and C do not have functions as first class citizens, but Pascal
> closer than C. In Pascal, but not C, you
On Fri, 13 Dec 2002, Deryk Barker wrote:
> Date: Fri, 13 Dec 2002 20:40:29 -0800
> From: Deryk Barker <[EMAIL PROTECTED]>
> To: Debian Users <[EMAIL PROTECTED]>
> Subject: Re: OT: functional languages (was: Politics of Java)
> Resent-Date: Fri, 13 Dec 2002 23:01:3
On Fri, Dec 13, 2002 at 02:29:13PM +0100, martin f krafft wrote:
> because i stumbled upon this yesterday and couldn't find an answer...
>
> Haskell, Erlang and Clean are functional programming languages.
>
> Lisp is very similar in terms of the paradigm.
>
> Is Lisp a functional language?
I th
Thus spake Craig Dickson ([EMAIL PROTECTED]):
> Pete Harlan wrote:
>
> > Lisp and Scheme are not functional languages. A functional languge is
> > one that doesn't support mutating data; Lisp and Scheme very much do.
>
> I certainly agree about Lisp. With Scheme, it's a bit trickier,
> especial
On Fri, Dec 13, 2002 at 03:13:57PM -0800, Craig Dickson wrote:
> Pete Harlan wrote:
>
> > Lisp and Scheme are not functional languages. A functional languge is
> > one that doesn't support mutating data; Lisp and Scheme very much do.
>
> I certainly agree about Lisp. With Scheme, it's a bit tric
Pete Harlan wrote:
> Lisp and Scheme are not functional languages. A functional languge is
> one that doesn't support mutating data; Lisp and Scheme very much do.
I certainly agree about Lisp. With Scheme, it's a bit trickier,
especially since the history is that Scheme was first invented to be
On Fri, Dec 13, 2002 at 07:45:34AM -0800, Craig Dickson wrote:
> Kirk Strauser wrote:
>
> > At 2002-12-13T14:52:51Z, Johann Spies <[EMAIL PROTECTED]> writes:
> >
> > > Yes. So is Ocaml and I think Scheme also.
> >
> > Since Scheme is a Lisp derivative, yes, it's also a functional language.
>
>
Craig Dickson wrote:
> Essentially, the definition of a functional language is that it is
> based on lambda calculus or combinators, and
Oops, forgot to go back and finish that sentence. Sorry!
Functional languages are basically sugared lambda calculus or combinator
logic. The sugar generally i
Derrick 'dman' Hudson wrote:
> "imperative" and "procedural" are the same thing,
Well, not _exactly_. Procedural is a subset of imperative. One could
trivially imagine an imperative language with no subroutines, which
could hardly be called "procedural". In fact, MS-DOS's shell is such a
language
martin f krafft <[EMAIL PROTECTED]> writes:
> Haskell, Erlang and Clean are functional programming languages.
>
> Lisp is very similar in terms of the paradigm.
>
> Is Lisp a functional language?
I believe so, yes; the opposite is "imperative language", a la BASIC,
C, Java, Perl, etc.
--
David M
also sprach Craig Dickson <[EMAIL PROTECTED]> [2002.12.13.1647 +0100]:
> Briefly, though, procedural languages are a subclass of imperative
> languages. Pascal and C, for example, are procedural. Functional languages
> are quite different.
ok. that's what i thought actually. i am only mangling in
also sprach Jörg Johannes <[EMAIL PROTECTED]> [2002.12.13.1525 +0100]:
> GIMP uses Scheme for Script-Fu, plug-ins are written in C. I think what
> Martin meant is described in an article in the german computer magazine
> c't (www.heise.de/ct/; 2002/25 p. 242). I did not read the article very
> c
On Fri, Dec 13, 2002 at 03:17:42PM +0100, martin f krafft wrote:
| also sprach Nori Heikkinen <[EMAIL PROTECTED]> [2002.12.13.1443 +0100]:
| > what do you mean by "functional"? even though i have quite limited
| > experience with it, i've certainly seen plugins for the GIMP and
| > things written
martin f krafft wrote:
> while C is an imperative language, Erlang is a functional or
> procedural language. (correct me if i am wrong, folks). it has no
> loops, assignments, variables or whatever.
>
> Since Lisp is very similar, I was wondering if it's also "functional"...
You're mangling thin
Kirk Strauser wrote:
> At 2002-12-13T14:52:51Z, Johann Spies <[EMAIL PROTECTED]> writes:
>
> > Yes. So is Ocaml and I think Scheme also.
>
> Since Scheme is a Lisp derivative, yes, it's also a functional language.
Scheme is a functional language; but I hesitate to call Lisp
"functional". In fa
At 2002-12-13T14:52:51Z, Johann Spies <[EMAIL PROTECTED]> writes:
> Yes. So is Ocaml and I think Scheme also.
Since Scheme is a Lisp derivative, yes, it's also a functional language.
--
Kirk Strauser
In Googlis non est, ergo non est.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a sub
On Fri, Dec 13, 2002 at 02:29:13PM +0100, martin f krafft wrote:
> because i stumbled upon this yesterday and couldn't find an answer...
>
> Haskell, Erlang and Clean are functional programming languages.
>
> Lisp is very similar in terms of the paradigm.
>
> Is Lisp a functional language?
>
Ye
Nori Heikkinen schrieb:
on Fri, 13 Dec 2002 02:29:13PM +0100, martin f krafft insinuated:
because i stumbled upon this yesterday and couldn't find an answer...
Haskell, Erlang and Clean are functional programming languages.
Lisp is very similar in terms of the paradigm.
Is Lisp a functional
also sprach Nori Heikkinen <[EMAIL PROTECTED]> [2002.12.13.1443 +0100]:
> what do you mean by "functional"? even though i have quite limited
> experience with it, i've certainly seen plugins for the GIMP and
> things written in it. Or maybe that was scheme.
while C is an imperative language, Erl
on Fri, 13 Dec 2002 02:29:13PM +0100, martin f krafft insinuated:
> because i stumbled upon this yesterday and couldn't find an answer...
>
> Haskell, Erlang and Clean are functional programming languages.
>
> Lisp is very similar in terms of the paradigm.
>
> Is Lisp a functional language?
wha
because i stumbled upon this yesterday and couldn't find an answer...
Haskell, Erlang and Clean are functional programming languages.
Lisp is very similar in terms of the paradigm.
Is Lisp a functional language?
--
Please do not CC me! Get a proper mailer instead: www.mutt.org
.''`. mar
29 matches
Mail list logo