Rubysyn: Clarifying Ruby's Syntax and Semantics
1–10 of 17 posts
Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#2Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#3Lisp? Then I would use Lisp...
> The goal is to define a comprehensive, trivially-parsable and sugar-free syntax.
Ruby has syntax sugar, no need to remove the funny parts.
Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#4I prefer the postcard ;-) https://richardeng.medium.com/syntax-on-a-post-card-cb6d85fa...
OTOH Ruby doesn't need a postcard, it needs a full poster.
Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#5> This is an experiment in clarifying some aspects of Ruby syntax and semantics. For that we're going to introduce an alternative Lisp-based syntax for Ruby, preserving Ruby semantics. Lisp? Then I would use Lisp... > The goal is to define a comprehensive, trivially-parsable and sugar-free syntax. Ruby has syntax sugar, no need to remove the funny parts.
Lisp has completely different runtime semantics. Even the lexical scope in Ruby is extremely peculiar. One of the hard parts of writing this document was to remove the intuitive influence of Lisp because it just doesn't make sense for Ruby.
Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#6> This is an experiment in clarifying some aspects of Ruby syntax and semantics. For that we're going to introduce an alternative Lisp-based syntax for Ruby, preserving Ruby semantics. Lisp? Then I would use Lisp... > The goal is to define a comprehensive, trivially-parsable and sugar-free syntax. Ruby has syntax sugar, no need to remove the funny parts.
This is just an intermediate representation, it's not meant to be used directly (even though you can do that, of course).
Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#7I prefer the postcard ;-) https://richardeng.medium.com/syntax-on-a-post-card-cb6d85fa...
For example, SmallTalk is a class based OO system, yet this postcard doesn’t slow you how to create a class.
Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#8I prefer the postcard ;-) https://richardeng.medium.com/syntax-on-a-post-card-cb6d85fa...
I never understood the appeal of this talking point. It’s just an accounting trick that moves the complexity to the standard library. For example, SmallTalk is a class based OO system, yet this postcard doesn’t slow you how to create a class.
The first Smalltalk-80 book you randomly find is 560 pages.
Also, there is a weird bargaining with "but not block temporaries" and "not an instance variable". Why not? Half of the postcard is basically empty. Also, "except primitives" — how many primitives are there?
Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#9Earlier quoted context omitted.
I never understood the appeal of this talking point. It’s just an accounting trick that moves the complexity to the standard library. For example, SmallTalk is a class based OO system, yet this postcard doesn’t slow you how to create a class.
Yeah, I was also going to say that conflating trivial syntax and "supremely easy to learn" is a very weak flex. The first Smalltalk-80 book you randomly find is 560 pages. Also, there is a weird bargaining with "but not block temporaries" and "not an instance variable". Why not? Half of the postcard is basically empty. Also, "except primitives" — how many primitives are there?
Re: Rubysyn: Clarifying Ruby's Syntax and Semantics
#10Earlier quoted context omitted.
I never understood the appeal of this talking point. It’s just an accounting trick that moves the complexity to the standard library. For example, SmallTalk is a class based OO system, yet this postcard doesn’t slow you how to create a class.
Yeah, I was also going to say that conflating trivial syntax and "supremely easy to learn" is a very weak flex. The first Smalltalk-80 book you randomly find is 560 pages. Also, there is a weird bargaining with "but not block temporaries" and "not an instance variable". Why not? Half of the postcard is basically empty. Also, "except primitives" — how many primitives are there?