I have a Permissions class in Java with free-style methods:
somePermissions.setRead(true).setWrite(false).setExecute(true)
The question is whether I should call these methods set{Property} or just {property} . The latter will look like this:
somePermissions.read(true).write(false).execute(true)
If I consider these methods separately, I would expect read something, but, on the other hand, it is closer to the intention of having something like named parameters, for example, in Scala:
Permission(read=true, write=false, execute=true)
java scala naming fluent-interface
deamon
source share