Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Factor works like that. It's dynamically typed and meta-programmable like Lisp and uses a global stack like Forth to pass data. By writing everything "backwards" (x) you get a syntax that is much more regular than what is possible in languages with Algol-like or even Lisp-like syntax. The language website is here https://factorcode.org/ It has a lot more code samples.

x - Of course, what is "backwards" and what is "forwards" is up to the reader. I'd argue that foo(arg) is backwards because we think of the expression as "arg processed by foo" Since arg comes before foo, it should be placed to the left of foo in the syntax.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: