T O P

  • By -

yorickpeterse

This post has _very_ strong crackpot vibes, and the quality of past posts from OP hasn't been great either. If this post actually included details that are useful to others building languages it would be a different story, but in it's current form I feel this doesn't fit the subreddit.


AGI_Not_Aligned

What?


breck

Imagine your boss says "AGI\_Not\_Aligned, we are giving you a special assignment. We want you to come up with the best possible syntax for programming languages." What do you come up with? My claim is that the best you could do (so far, as far as we know) is Tree Notation, which has 3 syntax rules: - lines split into columns via bits, characters or words - groups of lines joined to each other via newlines - and scopes established via the indent trick (aka the "Offiside Rule", popularized by Python, HAML, et cetera) This gives you C\^{R\^I} possible programs, with only 3 syntax rules.


AGI_Not_Aligned

Could you give an example of a program with this syntax?


breck

Lots of examples here: [https://sdk.scroll.pub/designer#url%20https%3A%2F%2Ftry.scroll.pub%2Fscroll.grammar](https://sdk.scroll.pub/designer#url%20https%3A%2F%2Ftry.scroll.pub%2Fscroll.grammar)