Re: [External] : Re: Rehabilitating switch -- a scorecard

2021-05-19 Thread Guy Steele
> On May 19, 2021, at 6:43 AM, fo...@univ-mlv.fr wrote: > > . ..\ . > This remember me something, tail call optimization is not the only > optimization that avoid the stack to grow. > > If you have calls like > g(a, () -> h(a, () -> f(a))) > > with 'a' being the same arguments, you can

Re: Rehabilitating switch -- a scorecard

2021-05-19 Thread Remi Forax
> De: "Brian Goetz" > À: "amber-spec-experts" > Envoyé: Mercredi 19 Mai 2021 13:12:43 > Objet: Re: Rehabilitating switch -- a scorecard > So, here's another aspect of switches rehabilitation, this time in terms of > syntactic rewrites. By way of analogy with lambdas, there's a sequence of > x

Re: Rehabilitating switch -- a scorecard

2021-05-19 Thread Brian Goetz
So, here's another aspect of switches rehabilitation, this time in terms of syntactic rewrites.  By way of analogy with lambdas, there's a sequence of     x -> e // parens elided in unary lambda is-shorthand-for     (x) -> e   // types elided is-shorthand-for   

Re: [External] : Re: Rehabilitating switch -- a scorecard

2021-05-19 Thread forax
- Mail original - > De: "Guy Steele" > À: "Brian Goetz" > Cc: "Remi Forax" , "John Rose" , > "amber-spec-experts" > > Envoyé: Mardi 18 Mai 2021 21:33:45 > Objet: Re: [External] : Re: Rehabilitating switch -- a scorecard >> On May 18, 2021, at 2:19 PM, Brian Goetz wrote: >> >> 

Re: [External] : Re: Rehabilitating switch -- a scorecard

2021-05-19 Thread forax
- Mail original - > De: "Brian Goetz" > À: "Remi Forax" > Cc: "John Rose" , "amber-spec-experts" > > Envoyé: Mardi 18 Mai 2021 19:07:41 > Objet: Re: [External] : Re: Rehabilitating switch -- a scorecard >> to fill the gap, we need >> - _ as pattern equivalent to var _ + _ not be