----- Mail original -----
> De: "Brian Goetz" <[email protected]>
> À: "Remi Forax" <[email protected]>
> Cc: "amber-spec-experts" <[email protected]>
> Envoyé: Mardi 11 Juin 2019 23:29:51
> Objet: Re: Towards better serialization

[...]

> 
>> And nitpicking, can we agree that in a pattern the parameters act more as 
>> return
>> values than as parameters, so instead of writing
>>      public pattern serializeMe(String serverName) {
>>          serverName = conn.getName();
>>      }
>> I prefer
>>      public pattern (String serverName) serializeMe {
>>          return (conn.getName());
>>      }
> 
> OMG, are you seriously going to bikeshed the syntax of a *different
> feature* here?  Really?  Really?
> 
> (And no, we cannot agree that.)

i will not respond to the bikeshedding bait,
i'm taking about the semantics here and like you i'm using a Java like syntax 
to explain my point,
this is an extractor, it's a method that extracts information from an instance, 
it's not a method parameterized by that information.

Rémi

Reply via email to