Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'repository': 0.05; '#define': 0.07; 'c++,': 0.07; 'javascript,': 0.07; 'makefile': 0.07; 'subject:code': 0.07; 'endif': 0.09; 'git': 0.09; 'level:': 0.09; 'file,': 0.15; 'languages.': 0.15; '"create': 0.16; 'assignments,': 0.16; 'etc...': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'language?': 0.16; 'syntactical': 0.16; 'troll': 0.16; 'wrote:': 0.17; 'sort': 0.21; 'received:209.85.214.174': 0.21; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'language.': 0.27; 'plain': 0.27; 'message-id:@mail.gmail.com': 0.27; 'agreed.': 0.29; 'source': 0.29; 'johnson': 0.32; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'fail': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; "i'll": 0.36; 'possible': 0.37; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'fact': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'your': 0.60; '(that': 0.62; 'thomas': 0.62; 'different': 0.63; 'jul': 0.65; 'wish': 0.70; 'hey,': 0.72; 'etc,': 0.84; 'flexible,': 0.84; 'pike': 0.84; 'rick': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=yIH9nDi/OYpqn2zEQ6RZF9wBk48o5mw8RjUTg4FG1kk=; b=pQ7jdqmDKpOpSoMVl4Ko2a/SBykNCbQ2w9sZRXUJKbS4hiC0HIU0UNzJk5opmnECri Lr6SaPKdjUenxlZAH8DqbT/CYjWd1AXcTezZEd1LMmsTPyNeDzW0sEb4Rk0sVQ6+Fd3i ckkNnsNVhf76mZjux5jAGZapbFOmjKyKHA+p8weTyUNg7ehTdeBeVrvaFQm4UErdeeZU z8DVRVR0JW3cckk8ZXoR6kb6VTQ2ib11JGpDPDT6k7h6QFGXkEU3EVkLl7f+dv/DarAE e9XLDFEW2vj9uffmvHJUzcZ4hL6AZeK7DcpdHMPVUPVZK5J7U1+v9b9707xGu8md5XS7 gBog== MIME-Version: 1.0 In-Reply-To: <4FF1F146.8080709@jollybox.de> References: <4FEF7117.7000109@jollybox.de> <4fefb0ad$0$29988$c3e8da3$5496439d@news.astraweb.com> <4fefcf72$0$29988$c3e8da3$5496439d@news.astraweb.com> <4fefedd8$0$29988$c3e8da3$5496439d@news.astraweb.com> <4ff0f939$0$29988$c3e8da3$5496439d@news.astraweb.com> <4ff157a4$0$30001$c3e8da3$5496439d@news.astraweb.com> <4FF1F146.8080709@jollybox.de> Date: Tue, 3 Jul 2012 07:57:50 +1000 Subject: Re: code review From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341266273 news.xs4all.nl 6881 [2001:888:2000:d::a6]:37840 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24791 On Tue, Jul 3, 2012 at 5:06 AM, Thomas Jollans wrote: > On 07/02/2012 08:22 PM, Rick Johnson wrote: >> Agreed. I wish we had one language. One which had syntactical >> directives for scoping, blocks, assignments, etc, etc... >> >> BLOCK_INDENT_MARKER -> \t >> BLOCK_DEDENT_MARKER -> \n >> STATEMENT_TERMINATOR -> \n >> ASSIGNMENT_OPERATOR -> := >> CONDITIONAL_IF_SPELLING -> IF >> CONDITIONAL_ELSE_SPELLING -> EL >> ... > > You must be joking. > > In C, for example, it is possible to "create your own language" by going > > #define IF(cond) if (cond) { > #define ELSE } else { > #define ELIF(cond) } else if (cond) { > #define ENDIF } > > > and so on. There's a reason nobody does it. I'll go one further. The "create your own language" is just a plain text file, is in fact is NO LANGUAGE. If it's that flexible, what's the use of calling it the same language? Actually there is a lot of use in having that sort of commonality, but at a different level: source control. Tools like git are language-agnostic; I can have a repository with Javascript, PHP (ugh), Pike (that atones), Python, C++, etc source files, a single makefile that in the darkness binds them, and so on. But they're still all different languages. Oh and Rick? Nice troll there with the ellipsis. You fail grammar forever, but hey, at least you win at trolling. ChrisA