-
Notifications
You must be signed in to change notification settings - Fork 1
Home
rookieMP edited this page Sep 27, 2011
·
8 revisions
FACT is currently in the process of being completely rewritten. The current code sucks.
Welcome to the FACT wiki! FACT is a concurrent, functional programming language which hopes to combine many aspects of procedural languages with object-oriented languages, without the burden of extra syntax. The name FACT stands for "Functions Are Classes Too." FACT is very similar to many functional languages. A major aspect of FACT is that first-class environments are used as the primary data structure. For a guide on using FACT, view How-to-use-FACT.
Here's a tail-recursive factorial example: scope factorial @ (num x) { return (scope fact_rec @ (num x, num n) { if (n > 1) return fact_rec (x * n, n - 1); else return x; }) (x, x - 1); }