News for hackers. Stuff that matters.
Re:Types Are Moving to the Right by coldtea on Saturday March 16, 2019 @07:13PM (#19411017)
>but in most situations it makes more sense for the type to be on the left. The reason being that it reads more naturally

Not really. And the Tiger Woods example is a whole phrase with a verb and an noun (describing what he did to whom), so not representative of a type declaration (which is just just describing what thing something of a specific name is).

So, it's more like:

  Tiger Woods: a golfer.
vs:

  A golfer: Tiger Woods.
Which of course is an argument for types on the right -- the first reads much better.
Re:Types Are Moving to the Right by Mirioron on Sunday March 17, 2019 @03:33AM (#19412744)
In my opinion the second reads better, because if you have multiple declarations (multiple rows) then they will all line up:

  Tiger Woods: a golfer.
  Jon Rahm: a golfer.
  Bryson DeChambeau: a golfer.
vs

  A golfer: Tiger Woods.
  A golfer: Jon Rahm.
  A golfer: Bryson DeChambeau.
This makes it easier to group up information when glancing at the code.
Re:Types Are Moving to the Right by makapuf on Sunday March 17, 2019 @07:16AM (#19413423)
I don't understand the alignment argument. You can insert spaces (or your editor ) and align types on the right if needed.
Re:Types Are Moving to the Right by Mirioron on Sunday March 17, 2019 @10:44AM (#19414263)
So, will you go back and beautify code? When will you insert them? If there are 3 lines like that? 4? 5?

It leaves so many questions that will have to be solved through "best practices" and everyone ends up doing it slightly differently.

Re:Types Are Moving to the Right by coldtea on Sunday March 17, 2019 @10:27AM (#19414168)
That's what TAB is for.