Towards better serialization
forax at univ-mlv.fr
forax at univ-mlv.fr
Tue Jun 11 22:41:31 UTC 2019
----- Mail original -----
> De: "Brian Goetz" <brian.goetz at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>
> Cc: "amber-spec-experts" <amber-spec-experts at openjdk.java.net>
> 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
More information about the amber-spec-experts
mailing list