From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Thompson, David" Newsgroups: gmane.lisp.guile.user Subject: Re: ?-suffix for booleans... good-idea? or bad-idea? Date: Tue, 25 Apr 2017 20:23:23 -0400 Message-ID: References: <878tmpoi3x.fsf@dustycloud.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1493166235 8289 195.159.176.226 (26 Apr 2017 00:23:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2017 00:23:55 +0000 (UTC) Cc: "guile-user@gnu.org" To: Christopher Allan Webber Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Apr 26 02:23:46 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3AkC-0001w9-9X for guile-user@m.gmane.org; Wed, 26 Apr 2017 02:23:44 +0200 Original-Received: from localhost ([::1]:51998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3AkH-0006A4-Tl for guile-user@m.gmane.org; Tue, 25 Apr 2017 20:23:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3Aju-00067e-Nk for guile-user@gnu.org; Tue, 25 Apr 2017 20:23:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3Ajt-0000Z4-KU for guile-user@gnu.org; Tue, 25 Apr 2017 20:23:26 -0400 Original-Received: from mail-vk0-x22d.google.com ([2607:f8b0:400c:c05::22d]:33148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3Ajt-0000Yu-Dl for guile-user@gnu.org; Tue, 25 Apr 2017 20:23:25 -0400 Original-Received: by mail-vk0-x22d.google.com with SMTP id j127so63656370vkh.0 for ; Tue, 25 Apr 2017 17:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=worcester-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O8NXOWsK5RW8BXyhmx0qGs5EOWXmA7cSu4vqtT/Flls=; b=WBuDwHbtt3tIJIdfalqRVIhqp0F4qf1T3Iis9UzbC3yMSrCN/qSsy1czqEGosRjjBF PfGzhGshOsd0cLyDb2su09kAnkfauFB0PFXKgVJoTtmfI0UpckU5M43ajGAWAA7GbvSG AAX+EpeO7oq2TWWk599G6wDFsStc/ukDuRDAeF8XU6NYARv8GmDa9UOgybYqtS7le4aw vYWjrW9U6Esk0oPG4O3u35UtMssl+ToFBopKvBjwdLGrHo2yytxN05xmfWhDHksvIVEi mrAy76RMy75BjWVu42knCJCB8SfLEC7uiYHeqDj+mqn0icIMPr303eIgSTRoDbduGspk bcEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O8NXOWsK5RW8BXyhmx0qGs5EOWXmA7cSu4vqtT/Flls=; b=rvT2QOYGixe+HfwJBU3AXhzxU5928KqqJAXMbsEuVDk+noMFImmJbQqXwLZ5b+RtgS ehwXFLLtA8sp+sb1Vg/8bP0u9gCrbN3t44eETE39MIEgqDYOB+8wTSfP8fbFzftAGkOO JUTOlQI9SE8LSPHvDuUB+YmWKMr+b3DG5QfQGaK4xxePZ3aEZQ8FgZ/aFuYs5EkXnV1q GRPhf+Y6lctah6gBWqVGyOFuEnRXtgkP6sJ8GJLj0ntNe1uK3RawYd8T7bo558xIY/ZC RwqNy5DL3tWCZDGC18HyfBznie/iBTksvzYs1EZ1u3NAhNxxkW1FJ8ybeTrqfAEFJEEW CiMw== X-Gm-Message-State: AN3rC/59f5fBN+c/PykaHMeidX0inzpq4hY96JW81TiJyUt8DT/rboJs kH3neGCHZBqtzzNk/mOVqHsxGldlRTGj X-Received: by 10.31.63.16 with SMTP id m16mr1576500vka.97.1493166204306; Tue, 25 Apr 2017 17:23:24 -0700 (PDT) Original-Received: by 10.31.89.71 with HTTP; Tue, 25 Apr 2017 17:23:23 -0700 (PDT) In-Reply-To: <878tmpoi3x.fsf@dustycloud.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22d X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13632 Archived-At: Hey, On Mon, Apr 24, 2017 at 1:01 PM, Christopher Allan Webber 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". My convention is that anything that evaluates to either #t or #f has a '?' at the end. Thus both predicates and flag variables are named like this. Using 'is-' or something like that is just how languages that don't allow punctuation in symbols workaround the limitation. Ruby is particularly annoying because while a method name can have a question mark at the end, a variable name cannot. tl;dr - Good idea! - Dave