From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: What does "lacks a prefix" mean? Date: Mon, 13 Jul 2015 02:46:53 +0200 Message-ID: <87pp3wkhoi.fsf@nl106-137-147.student.uu.se> References: <1e0ad02f-ca3e-495c-bb85-61f77090d31d@googlegroups.com> <87bnfmqzn2.fsf@kuiper.lan.informatimago.com> > > <082e0be8-425b-4eff-8473-0c1091628695@default> <87d1zydu5g.fsf@nl106-137-147.student.uu.se> <54890979-2bf7-4665-b1d6-a147141c3dd1@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436748526 11474 80.91.229.3 (13 Jul 2015 00:48:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2015 00:48:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 13 02:48:37 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZERvB-0006dt-21 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2015 02:48:37 +0200 Original-Received: from localhost ([::1]:52397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZERvA-0006QK-2H for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2015 20:48:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZERuz-0006Q2-O9 for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 20:48:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZERuv-0002Y6-NP for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 20:48:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:50226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZERuv-0002Xx-Gh for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 20:48:21 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZERuu-0006WM-BR for help-gnu-emacs@gnu.org; Mon, 13 Jul 2015 02:48:20 +0200 Original-Received: from nl106-137-156.student.uu.se ([130.243.137.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jul 2015 02:48:20 +0200 Original-Received: from embe8573 by nl106-137-156.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jul 2015 02:48:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 54 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-156.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:i3rpeASKygn/71AmAvC8iDKsEqA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105667 Archived-At: Drew Adams writes: > That's precisely the point. I want the latter, not > the former. > > In your text that I elided you seem to have missed > the point. It's not about dependencies being somehow > bad or dangerous or abnormal. ... "Dependency" is when one program needs another program to execute. Or whenever a library needs some other library to do its taks. When a variable uses another variable to compute its value, this is perhaps formally a "dependency" but mostly it is normal programming that happens every day, all the time. You mention when you come back to edit code. Then you want to know if there are (might be) dependencies by looking at the let or let*. Why? I never do that, but look at the variables, instead. I don't think about variable "dependencies" ever, because I assume they are there because that is the normal state. I don't need anything to "warn" me the code is normal. As said, I think code written in the "let* style", with tons of variables that incrementally show the computation stepwise, is *much more* clear/easy to read and edit/less error prone than code where everything is done in one binding to keep it "dependency" free. Why would anyone do that? We can take an example from a C++ project I once did. I just brought up a file, and immediately I see: char* const program_name = const_cast(program.c_str()); int arg_array_size = argc + 1; char* program_argv[arg_array_size]; program_argv[0] = program_name; You see that everything depends on everything. Do you think this makes any difference? /* WARNING - DEPENDENCIES AHEAD */ char* const program_name = const_cast(program.c_str()); int arg_array_size = argc + 1; char* program_argv[arg_array_size]; program_argv[0] = program_name; /* Relax - when evil returns, so shall we! */ -- underground experts united http://user.it.uu.se/~embe8573