NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
perltidy is sanctioned babel (Score:1)
If
I just ( you know , like this )
format my English text in any old way,it
gets awfully hard to read.There are standard grammatical conventions for written text,yet we try to reinvent them for programming
. See how silly it is to break before the operator
?And what's the deal with braces being non-tight
? ( I mean, we don't have space after an opening paren ( and
Re:perltidy is sanctioned babel (Score:1)
In French, it's conventional to put a space before the question mark -- like this ? They also don't seem to indent new paragraphs. ¡In Spanish, they mark exclamations at the front too! In Czech, we can see, that they put commas before "that" when the independent clause comes first (as in this sentence, so "we can see" isn't parenthetical). In German, they capitalize Nouns and sometimes in Phrases, extra Commas put.
So I think it's absurd that you think it's absurd that formatting is a preference. :) (Though you could probably argue that those languages are consistent "internally", so picking a format for Perl would only be equivalent to picking it for one of those languages. Maybe programming languages each need a few hundred years to settle on formatting conventions.)
Recently I've been experimenting a little with the formatting of my emails, as I don't like all of the "standard grammatical conventions for written text". For example,
(So I was trying to put one "phrase" per line, with continuations indented by one space.) They end up looking almost like poems, which I think makes them too flippant. It doesn't mean I have to accept the standard conventions, though.
I wonder why we even use text and punctuation much any more in programming. I'd think it'd be nicer to abstract those things away. (What was that project whose name I can never remember, S*****y, where you program by plugging images together?) I guess we're used to typing keys on a keyboard, though, so editing text is easiest.
Reply to This
Parent
Re: (Score:1)
Though you could probably argue that those languages are consistent "internally", so picking a format for Perl would only be equivalent to picking it for one of those languages.
Yes. And Perl is (quite arguably (on many levels)) linguistically based in English.
Maybe programming languages each need a few hundred years to settle on formatting conventions.
Maybe, but please name some French/ Spanish/ German/ Czech programming languages.
(So I was trying to put one "phrase" per line, with continuations indented by one space.) They end up looking almost like poems, which I think makes them too flippant.
Poems yes, but "poem" does not imply "flippant". Poetry has been quite influential throughout history (though we forget that thanks to technological advances like "fox news".) Poems are memorable because of the rhyme (or non-rhyme), beat, linebreaks, syntactical twists, etc. It's not much different than distending an array/hash decl
Re: perltidy is sanctioned babel (Score:1)
Maybe, but please name some French/ Spanish/ German/ Czech programming languages.
Rasmus Lerdorf (Denmark) designed PHP.
Bjarne Stroustrup (Denmark) designed C++.
Guido van Rossum (Netherlands) designed Python.
Yukihiro Matsumoto (Japan) designed Ruby.
Niklaus Wirth (Switzerland, german part) designed ALGOL, Pascal, Modula.
Jean David Ichbiah (France) designed Ada.
The Ericsson company (Sweden) designed Erlang.
French professors designed Prolog.
Norwegian professors designed Simula.
INRIA (France) designs OCAML.
etc, etc.
I could go through the thousands of programming languages listed
Close the world. txEn eht nepO