[HN Gopher] Why the Sad Face?
___________________________________________________________________
Why the Sad Face?
Author : todsacerdoti
Score : 10 points
Date : 2021-05-24 17:57 UTC (5 hours ago)
(HTM) web link (lukasz.langa.pl)
(TXT) w3m dump (lukasz.langa.pl)
| BugsJustFindMe wrote:
| > _Sure, the disadvantage of the "sadface dedent" is that it
| looks alien on first encounter. It's weird._
|
| Not to me! I love it and was doing it before I discovered Black
| and am immensely grateful for just about every formatting
| decision that Black makes (except sometimes I wish lists of
| function parameters didn't get split out one per line as soon as
| they run longer than a line, but that's extremely minor and I
| agree with why Black does it). In general Black's format rules
| _just make sense_ where so many others (like pep8 's 79 character
| line) do not.
|
| Often asking an organization to dictate a coding style guide is
| like pulling teeth (painful), but I've never had any challenges
| when proposing Black because it works in a way that makes life
| nicer for literally everyone and justifies each of its actions
| with a really good reason.
| musicale wrote:
| The reason I like Python's significant indentation is that it
| saves vertical space. In contrast, sad-face dedent wastes a line
| every time it's used.
| ahurmazda wrote:
| I will admit that I wont have a good reason to hate it but here I
| am. Maybe its the juxtaposition of the `)` with `:`. Most other
| examples end with just the former, `)`. The moment you add the
| colon, something just does not feel quite right.
|
| Then again this is not the hill I choose to die on.
___________________________________________________________________
(page generated 2021-05-24 23:02 UTC)