unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: DWIM region (was: Re: count regexp hits)
Date: Tue, 09 Jan 2018 07:20:41 +0100	[thread overview]
Message-ID: <86373fr1s6.fsf@zoho.com> (raw)
In-Reply-To: mailman.7055.1515475732.27995.help-gnu-emacs@gnu.org

Marcin Borkowski wrote:

>>> 1. Lack of space after `let*'. This is so
>>> one can change `let' into `let*' and back
>>> without moving anything else. Personally,
>>> I wouldn't mind just one "let" which would
>>> be equal to `let*', as legend has it the
>>> supposed parallelism of `let' is an urban
>>> legend, however now when it is like it is
>>> it would be confusing (to other people) to
>>> always use `let*' when there is no reason
>>> to, even tho there is equally little/as
>>> much reason to use plain `let'...
>
> Well, for me, `let*' is an indication that
> `let' is not enough. But it's a minor point,
> agreed. I don't know about relative
> efficiency of both.

Yes, that is the indication we are used to see.
So that is why it has to be used like that (it
makes sense to use it like that) even tho
technically it doesn't matter because there is
no parallelism lost in `let' when using `let*'.

So one could use `let*' all the time and not
have to think about it and not have the
bug/confusion when one changes something but
forgets to change the asterisk.

This is what I've heard; I haven't browsed the
C source myself if anyone wants to look for the
lost parallelism. But my bet it'll be even more
difficult to find than the proverbial microchip
in the supercomputer...

> Well, that is really strange. Could you
> explain the reason for this space being there
> and not somewhere else?

(yes
  (it is based)
  (on what happens on each line) )

> Well, it's not standard, I'd think. And for
> me, `indentation' is at the bol, this I'd
> call `alignment'.

Alignment of code is a part of indentation.

> And again, I do understand the reason, I just
> don't like this style. It's not something I'm
> accustomed to.

The reason is to group items, for example
   artefacts,
   relics,
   treasures,
   wierd magical materia,
   and other things that are on the same level,
together, to increase "seeing"
         and decrease "reading".


PS. If anyone looking at the above example
    without understanding it might be you have
    a mail client/newsreader that messes that
    up. If so, this is your luckiest
    computer day of 2018 so far, as that should
    be *disabled* first thing and then never
    touched upon again, ever.

-- 
underground experts united
http://user.it.uu.se/~embe8573


      parent reply	other threads:[~2018-01-09  6:20 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-04  4:12 count regexp hits Emanuel Berg
2018-01-04  5:02 ` Drew Adams
     [not found] ` <mailman.6799.1515042142.27995.help-gnu-emacs@gnu.org>
2018-01-04 18:47   ` Emanuel Berg
2018-01-04 21:32     ` DWIM region (was: Re: count regexp hits) Emanuel Berg
2018-01-04 22:18       ` DWIM region Stefan Monnier
2018-01-05 23:18         ` Philipp Stephani
2018-01-04 22:48       ` DWIM region (was: Re: count regexp hits) Kaushal Modi
     [not found]       ` <mailman.6836.1515106138.27995.help-gnu-emacs@gnu.org>
2018-01-04 23:03         ` Emanuel Berg
2018-01-04 23:14           ` Kaushal Modi
     [not found]           ` <mailman.6837.1515107666.27995.help-gnu-emacs@gnu.org>
2018-01-05  2:10             ` Emanuel Berg
2018-01-08 16:09           ` advice vs hooks in org (was DWIM region) Rusi
     [not found]       ` <mailman.6835.1515104325.27995.help-gnu-emacs@gnu.org>
2018-01-04 23:09         ` DWIM region Emanuel Berg
2018-01-04 23:14           ` Stefan Monnier
     [not found]           ` <mailman.6838.1515107716.27995.help-gnu-emacs@gnu.org>
2018-01-04 23:36             ` Emanuel Berg
2018-01-05  0:19               ` Emanuel Berg
2018-01-05 20:45             ` Emanuel Berg
2018-01-05 22:31               ` Stefan Monnier
     [not found]               ` <mailman.6892.1515191546.27995.help-gnu-emacs@gnu.org>
2018-01-06  2:20                 ` Emanuel Berg
2018-01-06 15:53                   ` Stefan Monnier
     [not found]                   ` <mailman.6929.1515254243.27995.help-gnu-emacs@gnu.org>
2018-01-06 18:52                     ` Emanuel Berg
2018-01-06 20:29                     ` Emanuel Berg
2018-01-06 22:14                     ` Emanuel Berg
2018-01-07  3:14                       ` Emanuel Berg
2018-01-07  3:25                         ` Emanuel Berg
2018-01-08 14:17                           ` Stefan Monnier
     [not found]                           ` <mailman.7019.1515421057.27995.help-gnu-emacs@gnu.org>
2018-01-09  1:41                             ` Emanuel Berg
2018-01-09  2:30                               ` Stefan Monnier
     [not found]                               ` <mailman.7052.1515465048.27995.help-gnu-emacs@gnu.org>
2018-01-09  4:11                                 ` Emanuel Berg
2018-01-09 13:40                                   ` Stefan Monnier
2018-01-08 14:11                         ` Stefan Monnier
     [not found]                         ` <mailman.7018.1515420745.27995.help-gnu-emacs@gnu.org>
2018-01-08 20:26                           ` Emanuel Berg
2018-01-08 14:08                       ` Stefan Monnier
2018-01-04 23:20         ` Emanuel Berg
2018-01-07  5:32       ` DWIM region (was: Re: count regexp hits) Marcin Borkowski
     [not found]       ` <mailman.6953.1515303153.27995.help-gnu-emacs@gnu.org>
2018-01-07  6:45         ` Emanuel Berg
2018-01-07  7:21           ` Marcin Borkowski
     [not found]           ` <mailman.6967.1515337253.27995.help-gnu-emacs@gnu.org>
2018-01-07 20:57             ` Emanuel Berg
2018-01-09  5:28               ` Marcin Borkowski
2018-01-09 13:42                 ` DWIM region Stefan Monnier
     [not found]                 ` <mailman.7069.1515505638.27995.help-gnu-emacs@gnu.org>
2018-01-10  3:31                   ` Emanuel Berg
     [not found]               ` <mailman.7055.1515475732.27995.help-gnu-emacs@gnu.org>
2018-01-09  6:20                 ` Emanuel Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86373fr1s6.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).