News for hackers. Stuff that matters.
Re:Cell – A functional, relational, reactive programming lan... by ztjio on Tuesday November 28, 2017 @06:48PM (#15803160)
Nice ideas but for the love of god what is up with the syntax resulting in lines with nothing but an indented semi-colon?

Pleeeease reconsider this. You may not think it matters but people make terrible language choices every day on such basis.

Re:Cell – A functional, relational, reactive programming lan... by chubot on Tuesday November 28, 2017 @07:23PM (#15803369)
I initially downvoted you for the rude tone, but when I look at the code, I do see the same thing.

https://github.com/cell-lang/compiler/blob/master/src/main.c...

There is a opening colon on if/for/while, and a closing semi-colon. This seems the same ergonomically as an open brace and a close brace, and needlessly different.

I can understand leaving off the closing delimiter for a Python-like syntax. But this doesn't seem to be a good compromise.

The language sounds awesome in many other respects, which I have yet to dive into. But yes unfortunately this is the first thing people see.

My philosophy is to have new syntax where there are new semantics, but old syntax for old semantics. And blocks seems like they have no new semantics, so it should just choose C/Java style or Python style.

It reminds me of when Rust was first released, and they used brk for break and cnt for continue. That was just silly, because they mean exactly the same things as they do in every other common language, with a needless syntactic difference. People program in more than one language simultaneously, and all these differences add up.

Re:Cell – A functional, relational, reactive programming lan... by nine_k on Tuesday November 28, 2017 @10:05PM (#15804208)
> just choose C/Java style or Python style.

+1 for this.

I must add that Haskell somehow manages to combine both, so you can use braces if needed, but normally people use indents, and neither leads to syntactic uncertainties.

Re:Cell – A functional, relational, reactive programming lan... by _sdegutis on Tuesday November 28, 2017 @10:23PM (#15804286)
Honestly that kind of extra feature was a bit of a hindrance when learning Haskell. Always felt like I was learning the wrong style no matter which style I went with.
Re:Cell – A functional, relational, reactive programming lan... by maxxxxx on Tuesday November 28, 2017 @08:53PM (#15803798)
Agreed. For people from a C, C++ or Java background ";" on it means an empty statement. Braces are much more common for this. Or do something like "endif" or "endfor" or just "end"
Re:Cell – A functional, relational, reactive programming lan... by nickelbox on Tuesday November 28, 2017 @11:41PM (#15804631)
+1. But at least it's better than Zimbu where there's a closing brace but no opening one. That's my personal bar for bad language design decisions.
Re:Cell – A functional, relational, reactive programming lan... by cdancette on Tuesday November 28, 2017 @06:52PM (#15803192)
Agreed, braces seem a better fit here