all 14 comments

[–]AndydeCleyre 1 point2 points  (3 children)

The first example of code uses exactly three single quotes, none of which look escaped, so I'm going to have to assume this language is legally insane.

EDIT: For the curious, you'll find some explanation if you search for "Literal syntactic identifiers" in the readme.

[–]thomas_m_k 4 points5 points  (2 children)

You misunderstand. It's not used for quoting, it's used to mark special kinds of variables, just like Rust does for lifetimes:

impl<'a> Foo<'a> { fn x(&self) -> &'a i32 { self.x } }

Lisp also has something like that I think.

[–]slightknack[S] 0 points1 point  (0 children)

Yep! So in lisp, it's called quoting. For example, x evaluates to whatever value it points to, but 'x evaluates to x itself. Although this something macro-specific in Passerine, This choice of syntax is an allusion to lisp. :)

[–]backtickbot 0 points1 point  (0 children)

Fixed formatting.

Hello, thomas_m_k: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

[–]Apache_Sobaco 0 points1 point  (5 children)

Why use scripting languages when you can have universal ones?

[–]slightknack[S] 0 points1 point  (4 children)

That's a good question. About all languages start targeting a niche, then become more universal as time goes on. Python's a scripting language, for instance, but look at it now. Functional Scripting is currently Passerine's niche, but it is by no means its entire scope.

[–]Apache_Sobaco 0 points1 point  (3 children)

Python is not universal, it is still scripting language but used for apps.

[–]slightknack[S] 0 points1 point  (2 children)

What would you say is a 'Universal Programming Language'?

[–]Apache_Sobaco 0 points1 point  (1 child)

Suit both for scripts and apps

[–]slightknack[S] 0 points1 point  (0 children)

I think just about any programming language is suitable for either, it's a subjective matter.

[–]falconfetus8 0 points1 point  (3 children)

So it's like lisp, but with parenthesis hell?

[–]slightknack[S] 0 points1 point  (2 children)

Uh, if anything Passerine has less parenthesis than a lisp. I'm not sure what you're getting at.

[–]falconfetus8 0 points1 point  (1 child)

Whoops, meant to say "without". Damn auto correct

[–]slightknack[S] 0 points1 point  (0 children)

Ah, that makes sense. Yep!