Paul (2017-04-25 12:21 -0400) wrote: > On 04/25/2017 11:50 AM, Jan Wedekind wrote: > >> What do people think? I'm struggling with deciding what's the right >> thing for my own code, but leaning towards "we shouldn't use the ? >> suffix for just boolean values". > > I like using the '?' suffix only for predicates. I often use 'is-' > prefix for boolean values, which reads well: (if is-raining ...)
Thanks for sharing! I also like to use '?' for functions but I always felt uncomfortable to use it for variables. Using "is-" (or "has-" or alike) sounds interesting, I'm going to try this convention in my code, thanks for the idea! -- Alex
