From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: concat vs format Date: Sat, 8 Dec 2018 20:09:11 -0800 (PST) Message-ID: References: <6038B67F-98A7-42B9-8486-97DB99D63033@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544328462 5331 195.159.176.226 (9 Dec 2018 04:07:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2018 04:07:42 +0000 (UTC) To: Jean-Christophe Helary , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 05:07:37 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1gVqNT-0001D3-Am for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Dec 2018 05:07:35 +0100 Original-Received: from localhost ([::1]:53824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVqPZ-0002rY-Pe for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 23:09:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVqP8-0002rF-Io for help-gnu-emacs@gnu.org; Sat, 08 Dec 2018 23:09:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVqP5-0007Rs-FO for help-gnu-emacs@gnu.org; Sat, 08 Dec 2018 23:09:18 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:43420) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gVqP5-0007Rm-51 for help-gnu-emacs@gnu.org; Sat, 08 Dec 2018 23:09:15 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB949CIt124403; Sun, 9 Dec 2018 04:09:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=1jlSl0tv171BirG0LelFUfkGzJZEq9y8ABDxHxGwq5o=; b=YoNmIZQtaWHWAVuRbgRYsvz4I21NL+PP3E0gelxEb9Np1w46AcsT6eB1nN/Bkqpe0X8P cz1395M48dBMevyBLYoTX0xc4a8kEFS9h9ygmEBTYG3r1I+7QNTOJ307/6XY3owXZMzn 1b8znDRurUXp2G3B+Hlwa4/f9QNfdJjlCECc8RuHju+ziJXQnQjxpaCVnD0xtuE8WcHJ mNixuJHUTyIEPd2uwv89Xp4zF4lbFHk8+w/rZ+I0H0nH/8RqiulpCUiz/rYxM6v/Z7vm 1+Lny9T0S5mD2XzeeVGRHivVX44JqPDV6ZSXzcGmrYywfjgbh1w8r4g7lcabO+4wrMhf 5A== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2p83fdsy82-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Dec 2018 04:09:12 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wB949CRL009983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Dec 2018 04:09:12 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wB949Cn9002274; Sun, 9 Dec 2018 04:09:12 GMT In-Reply-To: <6038B67F-98A7-42B9-8486-97DB99D63033@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4771.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9101 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=608 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812090038 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.79 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118928 Archived-At: > Is there a difference between: > (concat firstPartofURL secondPartofURL) and > (format "%s%s" firstPartofURL secondPartofURL)? If both args are strings then no; the result is the same. But the functions are very different - they take different args and, aside from some cases like this one where the result is the same for some args, their uses/purposes are different.