guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ?-suffix for booleans... good-idea? or bad-idea?


From: Marko Rauhamaa
Subject: Re: ?-suffix for booleans... good-idea? or bad-idea?
Date: Thu, 27 Apr 2017 15:07:42 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Jan Nieuwenhuizen <address@hidden>:

> Christopher Allan Webber writes:
>
>> I've noticed that it's common in Guile modules to use "foo?" for
>> variable names involving booleans.  It's tempting,
>
>> But is it a good idea?
>
> It's an idea that I like and use.

There are also the traditional:

   (let ((name$ "Henry Ford")
         (birth-year% 1863)
         (timestamp& 1493294649)
         (price@ 99.99)
         (slice! 0.6666667)
         (proportion# 0.66666666666666666666667))
      ...)


Marko



reply via email to

[Prev in Thread] Current Thread [Next in Thread]