0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

spinoza所感

Posted at

spinozaがやりたいことは、自分の知っている限りではKittenみたいな、concatenativeな言語が近いんじゃないかなって思いました。

Kittenについては以前紹介しました。

Kittenでスタックと戯れる

【値】はすべてspinozaの中で「配列」として処理されます。
圏論の考え方でつくられた、JavaScriptで動作する純粋関数型プログラミング言語 spinoza (スピノザ)

A stack-based language is one where most operations are done on a stack of values. Functions take their inputs from the stack, do some computation, and return their results on the same stack.
Kitten Programming Language

Kittenで遊んでみる際、昔紹介した当時とは構文が変わっているということに注意してください。具体的には、中置演算子を使って1 + 2 * 3みたいに書けるようになっています。中置演算子を関数として扱いたいときは1 2 3 (*) (+)のように、括弧でくくって書いて下さい。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?