Click here to Skip to main content
15,887,302 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Python problems... Pin
Alister Morton10-Apr-23 21:48
Alister Morton10-Apr-23 21:48 
JokeRe: Python problems... Pin
Nelek6-Apr-23 10:05
protectorNelek6-Apr-23 10:05 
GeneralRe: Python problems... Pin
David Crow5-Apr-23 1:50
David Crow5-Apr-23 1:50 
GeneralRe: Python problems... Pin
glennPattonWork35-Apr-23 2:16
professionalglennPattonWork35-Apr-23 2:16 
GeneralRe: Python problems... Pin
PIEBALDconsult5-Apr-23 3:20
mvePIEBALDconsult5-Apr-23 3:20 
GeneralRe: Python problems... Pin
honey the codewitch5-Apr-23 11:13
mvahoney the codewitch5-Apr-23 11:13 
GeneralRe: Python problems... Pin
Dan Neely5-Apr-23 5:51
Dan Neely5-Apr-23 5:51 
GeneralRe: Python problems... Pin
trønderen5-Apr-23 6:20
trønderen5-Apr-23 6:20 
Dan Neely wrote:
The chuckle[mastadon] s guilty of designing python have no such excuse.
I was there when C pushed out Pascal (and Algol and Simula and ...). Lots of programmers argued in favor of C because they hated all the typing of BEGIN and END (and in some languages CASE - ESAC, DO - OD and PROCEDURE - ERUDECORP). I met lots of programmers who insisted that replacing keywords with braces speeded up their programming.

Besides, they argued: All those keywords clutter up the program code. C, using braces for delimiters, is much cleaner, they insisted.

Python is just taking this one step further. Why should you have to type a delimiter, if you indent the code? Why clutter up you code with braces? Besides: Using both delimiters and indentation opens for inconsistencies: You could be using a brace without indenting, and the reader might overlook it, or indenting without a brace, leading the reader to think that the indented code makes up a block. If you use indentation only, you avoid such problems.

That is how the arguments go. Most modern programmers never wrote a compiler, not even a parser, an in any case, using indents for identifying blocks is not, and has never been, a resource saver. So that argument is never heard.

I hope that I do not appear as if I am supporting these arguments! I am certainly not. I am much in favor of making structures very explicit. I want the compiler to check that redundant elements (like indent and textual markers) correspond, and to check that the label on the block close matches than of the block opening. I am definitely not a Python lover.
GeneralRe: Python problems... Pin
peterkmx5-Apr-23 8:14
professionalpeterkmx5-Apr-23 8:14 
GeneralRe: Python problems... Pin
FreedMalloc5-Apr-23 9:21
FreedMalloc5-Apr-23 9:21 
GeneralRe: Python problems... Pin
peterkmx5-Apr-23 11:10
professionalpeterkmx5-Apr-23 11:10 
GeneralSay Python Pin
RickZeeland5-Apr-23 3:19
mveRickZeeland5-Apr-23 3:19 
GeneralRe: Python problems... Pin
Chris Maunder5-Apr-23 3:41
cofounderChris Maunder5-Apr-23 3:41 
GeneralRe: Python problems... Pin
glennPattonWork35-Apr-23 4:02
professionalglennPattonWork35-Apr-23 4:02 
GeneralRe: Python problems... Pin
glennPattonWork35-Apr-23 4:06
professionalglennPattonWork35-Apr-23 4:06 
GeneralRe: Python problems... Pin
Richard MacCutchan5-Apr-23 4:42
mveRichard MacCutchan5-Apr-23 4:42 
GeneralRe: Python problems... Pin
Chris Maunder5-Apr-23 9:55
cofounderChris Maunder5-Apr-23 9:55 
GeneralRe: Python problems... Pin
PIEBALDconsult5-Apr-23 8:45
mvePIEBALDconsult5-Apr-23 8:45 
GeneralRe: Python problems... It's a snake. Pin
jmaida5-Apr-23 10:28
jmaida5-Apr-23 10:28 
GeneralRe: Python problems... It's a snake. Pin
glennPattonWork35-Apr-23 10:48
professionalglennPattonWork35-Apr-23 10:48 
GeneralRe: Python problems... It's a snake. Pin
theoldfool5-Apr-23 14:33
professionaltheoldfool5-Apr-23 14:33 
GeneralRe: Python problems... Pin
Kate-X2575-Apr-23 22:23
Kate-X2575-Apr-23 22:23 
GeneralRe: Python problems... Pin
glennPattonWork36-Apr-23 2:32
professionalglennPattonWork36-Apr-23 2:32 
GeneralRe: Python problems... Pin
Jeremy Falcon7-Apr-23 10:28
professionalJeremy Falcon7-Apr-23 10:28 
GeneralRe: Python problems... Pin
glennPattonWork37-Apr-23 10:41
professionalglennPattonWork37-Apr-23 10:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.