Lisp influence on factor programming language?

I read (from Glory to Pestov) that Lisp influenced the factor, but I'm not sure I can understand how? Are these not very different programming languages?

+6
lisp factor-lang concatenative-language
source share
3 answers

Although the language is stack-based, there are many elements that show the explicit influence of lisp. Take the IF statement as an example. In the fourth case, if the statements are cond IF (code if true) ELSE (code if false) THEN, and the If definition is valid at run time to ensure that the correct branch is started. If there is a direct translation in the coefficient, if in lisp it accepts a true quote and a false quote and does the correct one. Edit: the other is a dynamic region, something CL is known for. Its lexical variables are defined by the expression, as is lisp (even if *)

+8
source share

An object system for one: http://concatenative.org/wiki/view/Object%20system , reminiscent of CLOS.

+7
source share

Well, the whole philosophy of โ€œcode as dataโ€ is also present in Factor, from what I have so far seen. There are macros, you can quote the code and manipulate the quoted code as a sequence. Basically, quotation in Factor is equivalent to the quoted list / s-expression in Lisp. Lisp goes a little further using s-expressions for the whole code.

0
source share

All Articles