[wildfly-dev] Default boolean parameters to true

Darran Lofthouse darran.lofthouse at jboss.com
Thu Aug 21 06:14:18 EDT 2014


Not talking about changing any other defaults but I have been thinking 
would it make sense where boolean parameters are being passed in an 
operation that we assume they are true if no value is specified.

As an example I regularly execute the following two commands: -

   :read-resource(recursive=true)
   :whoami(verbose=true)

In both cases the value feels redundant and it would be more natural to 
just use: -

   :read-resource(recursive)
   :whoami(verbose)

Regards,
Darran Lofthouse.



More information about the wildfly-dev mailing list