----- Mail original ----- > De: "Brian Goetz" <brian.go...@oracle.com> > À: "Remi Forax" <fo...@univ-mlv.fr> > Cc: "amber-spec-experts" <amber-spec-experts@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