Closed h8liu closed 10 years ago
Zin is a programming language. I design it to try some interesting ideas.
It is yet under designing (not runable now).
Maybe...
definition(qsort) := ifx(length(param) > 0, ( qsort(param select '(param < head)) append qsort(param select '(param >= head)) ) with (head := param(0)), list())
// Sorry for my bad English :)
Thanks for your quick response. Please tolerate my curiosity; I have more questions:
btw, I also speak Mandarin, if you prefer.
Is it going to be interpreted or compiled? Sounds more like a interpreted language.
Yes, it is interpreted. Partly JIT compiled is possible, but it takes a lot of work, you know. :)
Also, it sounds like Scheme, so far. So what will be the difference?
Most of the language (intepreter) is in the standard library. For example, True
and False
are defined atom.zc
, and it is possible to redefine them (a := definition(true); definition(true) := '(print "ahaha", a)
).
Another difference is that both variables and (some of) functions has "(on)write" operation. Function can run back. sin(x) := 1
will be an arcsine.
Besides, it will not be so "pure" but looks like a procedural programming language.
Sorry for my ignorance, what does "nyfix syntax" mean?
"中缀表达式" maybe :)
Thanks! :)
Just curious, what is zin? What do you have in your mind?