News for hackers. Stuff that matters.
Re:Kitten Programming Language by pmontra on Saturday August 04, 2018 @01:08AM (#17685459)
I like that concatenation works with space instead of more verbose operators like for example Elixir's |>

It basically turns space into the dot of most object oriented languages. It would be ok to use a dot too, but the space looks better and leaves the option of using the dot inside function names. I wish they could change the syntax of Elixir to look like that.

I probably missed it, but how do we import functions from another file / module? And how about multi-line concatenations?

Re:Kitten Programming Language by evincarofautumn on Saturday August 04, 2018 @01:33AM (#17685521)
> how do we import functions from another file / module?

Currently everything is public, so you can just give multiple files to the compiler and it ought to work. I’m working on a more structured module system right now. As a first step, definitions will be private to the vocab (namespace) in which they’re defined by default, and adding an “export” annotation will make them visible from other vocabs. “import” will be sugar for introducing local synonyms (aliases) of definitions in other vocabs.

What do you mean by “multi-line concatenations”?

Re:Kitten Programming Language by Boulth on Saturday August 04, 2018 @07:16AM (#17686374)
> I like that concatenation works with space instead of more verbose operators like for example Elixir's |>

Then you'd probably also like Rebol/Red with its minimal syntax.

Check this list of small examples: http://re-bol.com/short_rebol_examples.r or a video version of the same: https://youtu.be/lR5Fzv6DP0I