Re: [External] : Re: Pattern assignment

2022-04-07 Thread Alan Malloy
On Fri, Apr 1, 2022 at 6:48 AM Brian Goetz wrote: > > I'm certainly on board with a pattern-matching context that doesn't > require a vacuous conditional. Remainder, as it often does to me, seems > like the most likely point of confusion, but if we believe Java developers > can get their heads ar

Re: [External] : Re: Pattern assignment

2022-04-01 Thread Brian Goetz
I'm certainly on board with a pattern-matching context that doesn't require a vacuous conditional. Remainder, as it often does to me, seems like the most likely point of confusion, but if we believe Java developers can get their heads around the idea of remainder in other contexts, I don't th

Re: [External] : Re: Pattern assignment

2022-03-28 Thread forax
> From: "Brian Goetz" > To: "Remi Forax" > Cc: "amber-spec-experts" > Sent: Monday, March 28, 2022 5:41:10 PM > Subject: Re: [External] : Re: Pattern assignment >> There are another different between assignment and _let_, a _let_ creates new

Re: [External] : Re: Pattern assignment

2022-03-28 Thread Brian Goetz
There are another different between assignment and _let_, a _let_ creates new fresh local variables (binding) while assignment is able to reuse an existing local variable. Correct, the more precise analogy is not to _assignment_, but to _local variable declaration with initialization_ (who