* about scheme names
@ 2000-01-12 0:38 ÷ÃÃÃÃÃÃà ãÃÃÃ
ÃÃÃÃÃ
2000-01-12 10:12 ` Ariel Rios
0 siblings, 1 reply; 2+ messages in thread
From: ÷ÃÂÃÂÃÂÃÂÃÂÃÂàãÃÂÃÂÃÂ
ÃÂÃÂÃÂÃÂÃÂ @ 2000-01-12 0:38 UTC (permalink / raw)
To: ariel; +Cc: guile-gtk
Hi,
Many gtk+ functions have 'void' return type, so they are called for
side effects only. Usually the names of such procedures in Scheme are
suffixed with exclamation sign (!).
Also the common practice is to name the arguments and procedures,
which are of boolean type, with names ending with question mark (?).
IMHO, it would be useful to make corresponding updates in the
guile-gtk procudere, wich convert C names to Scheme names.
Regards,
Vladimir V. Tsychevski
senior expert
-----------------------------------------------------
Jet Infosystems
Krasnoproletarskaya 6, Tel. (+7 095) 972-1182
Moscow 103006, Russia Fax (+7 095) 972-0791
-----------------------------------------------------
Any opinions or recommendations herein are those of
the author and not of his computer.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: about scheme names
2000-01-12 0:38 about scheme names ÷ÃÃÃÃÃÃà ãÃÃÃ
ÃÃÃÃÃ
@ 2000-01-12 10:12 ` Ariel Rios
0 siblings, 0 replies; 2+ messages in thread
From: Ariel Rios @ 2000-01-12 10:12 UTC (permalink / raw)
To: ÷ÃÂÃÂÃÂÃÂÃÂÃÂÃÂ
ãÃÂÃÂÃÂ
ÃÂÃÂÃÂÃÂÃÂ
Cc: guile-gtk
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 881 bytes --]
÷ÃÃÃÃÃÃà ãÃÃÃ
ÃÃÃÃÃ wrote:
>
> Hi,
>
> Many gtk+ functions have 'void' return type, so they are called for
> side effects only. Usually the names of such procedures in Scheme are
> suffixed with exclamation sign (!).
The practice is that 'operations that change the value of variables
(or that change data strucs) are given names that end with an
exclamation mark'
I don't think that Gtk funcs that return void fall into this category.
> Also the common practice is to name the arguments and procedures,
> which are of boolean type, with names ending with question mark (?).
>
> IMHO, it would be useful to make corresponding updates in the
> guile-gtk procudere, wich convert C names to Scheme names.
I don't think adding ! and ? is not a good idea. IMHO, we shall follow
Gtk naming conventions as close as possible.
Ariel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-01-12 10:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-12 0:38 about scheme names ÷ÃÃÃÃÃÃà ãÃÃÃ
ÃÃÃÃÃ
2000-01-12 10:12 ` Ariel Rios
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).