top | item 26157206

(no title)

sizeofchar | 5 years ago

I hope they can avoid having two block indents, like in those examples. Match could be followed by a case in the same line, and extra cases in new lines.

  match val case True:
      print("Ok")
  case False:
      print("Not ok")
  
  print("Done")

discuss

order

ledauphin|5 years ago

they discussed various options for less indentation and rejected them. this syntax is definitely out of the question.