Earlier quoted context omitted.
Not having studied Rye documentation, is it true that Rye syntax is "minimal"? Compared to for instance Smalltalk?
Yes ... Rye is syntax-wise in similar camp than Lisps, only without parenthesis. Some say Lisp has no syntax (which is debatable), but has a point that there are no syntax rules. There are multiple token types and they always combine / apply in the same ways, there are no special forms like "how to define a function" or "how to write and if else". In Rye calling if or eihter (if/else) is no different than calling any…
Rye Language
41–50 of 61 posts
Re: Rye Language
#42Re: Rye Language
#43This sounds cool: "Every active component in Rye is a function (if, loop, for, fn, return, extends, context). No keywords, no special forms." It should make the language much simpler than other languages. The challenge of programming is dealing with copmplexity in code, and if the language takes away much of that complexity it should be a good thing.
Re: Rye Language
#44Interesting, but optional parenthesis is a no go for me. Every time I try to read a Ruby line with no (), I have to stop and think. Not being able to scan code is an anti feature.
Re: Rye Language
#45 lsp\ "prin"
It has two problems:
- it's unclear why "prin", not "print";
- the usage of backslash looks scary.Subsequent examples are also not good:
bears .column? 'Area |unique
- overloaded syntax of '.' and '?' characters;
- unbalanced quotes;
- unbalanced whitespace around the '|' characters.Re: Rye Language
#46Hint: the "interactive" demos are scrollable by dragging the bottom. (Sadly, you don't have any access to the terminal window's scrollbar, so you can't just scroll to the end of the "video.") I still think a non-animated transcript of a terminal session is better.
Maybe that my wording is off. This are not interactive demos, but more like demos of interactive use in console ... "animated interaction demos". These use asciinema, which is a nice tool and I think it's good to display interesting interactions compactly. But yes, for deeper look it moves too fast for one, so something what you describe could be better. I could have these animations for getting attention and then li…
tag with a bit of styling might do it?
Re: Rye Language
#47Cool because I'd like to think if someone made a Netflix tech drama loosely based around Bell Labs in the early 80's, this would language would appear in that series. A language created by some Nordic computer scientist who angrily shakes his fist at the world because it doesn't get adopted due to it's weird syntax. Of course instead we get Awk.
Re: Rye Language
#48--
Re: Rye Language
#49Earlier quoted context omitted.
Ideally this would be a view setting, and could be enabled or disabled for different users without making edits to the code.
Yes, and IDE that would know the arity of functions (which is not totally simple, because of the very dynamic nature of the language) would be able to display the "parenthesis" or the grouping of function calls. I plan to make sort of visual editor for it too as an experiment so that could be a first demo of it.
Of course you could just take existing text from a codebase and reformat it for viewing, but then there's this ambiguity about which version is real that you'd have to deal with.
In Unison it's understood that none of the text is real, it's only the resulting AST and its hash that matters, so if you're seeing text at all you know it's just for your benefit in that moment. It's such a cool idea.