Python Forum
Are braces rather than indentation ever wanted?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Are braces rather than indentation ever wanted?
#2
  • I think that quite a few people actually like Python as it is - besides, it enforces indent discipline. And I have seen code with lousy indents - in C, bash, and more.
  • Python 3.x is the future
  • I hated the way your code looks (OK, that's me). Part of the beauty of Python - it's concise.
  • "I don't like how the code looks" is a poor excuse to mangle popular and successful language, again - my personal opinion
  • If you ever use Python professionally, and try this stint - you'll lose your job quickly

My 2 cents. I personally like Python style much more than C style.
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
RE: Are braces rather than indentation ever wanted? - by volcano63 - Apr-30-2017, 03:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to output set items without the curly braces ? jimthecanadian 3 3,046 May-11-2019, 07:02 AM
Last Post: perfringo
  search and replace dots inside curly braces kchinnam 1 2,780 May-01-2018, 06:53 PM
Last Post: Larz60+
  No curly braces in python? RedSkeleton007 9 9,413 Jul-28-2017, 11:01 AM
Last Post: tony1812
  JSON API / no braces marucho21 1 3,989 Feb-01-2017, 07:35 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020