[ag-kompilerbau] no variables

  • From: markus klinik <markus.klinik@xxxxxx>
  • To: ag-kompilerbau@xxxxxxxxxxxxx
  • Date: Tue, 30 Aug 2005 22:11:14 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Ich wollte gerade was ins Wiki posten aber beim Schreiben hab ich dann
gemerkt dass ich es doch nicht verstanden hab. Es geht um die Sache mit
(bzw ohne) Variablen. Kann es vielleicht wie folgt sein? Wie seht ihr das?

- ----
==== No Variables ====

In functional programming languages there are no variables. But there
are *identifiers*. Identifiers are lexical tokens that are at runtime
/bound/ to something. In c the identifier n

int f(int n) {
  return 3 * n
}

is bound to a variable whose value is 3. In haskell the identifier n

f(n) = 3 * n

is bound directly to the value that is passed to the function, for
example the integer 'five'. You can't change the value of 'five'.
- ----


Hier ein Link dazu:
ftp://ftp.aw.com/cseng/authors/finkel/apld/finkel04.pdf

nur nebenbei:
http://www.willamette.edu/~fruehr/haskell/evolution.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDFL1iX+euveChG5ARAkcyAKCAtHND4VPYZS9iHXFku3kXZJZ1ugCgoZVG
SjZ51iKtP1jhTE+iJGb96pA=
=Q8Nu
-----END PGP SIGNATURE-----

Other related posts:

  • » [ag-kompilerbau] no variables