Hacker News new | ask | show | jobs
by dugword 2135 days ago
Python already has support for optional braces.

  def say_word(word): #{
    print(word)
  #}
7 comments

Very nice. But with the linked project, although the braces are optional, when you do use them I'm presuming they're checked for correctness (i.e. they match the indentation level and are properly matched).
being technically correct is the best kind of correct.
I had never heard "#" pronounced "optional".

OptionalTheMoreYouKnow

Automatically fixes mismatched braces as well!
You can also use #begin and #end, of course.
What??? I had no idea. You’re beautiful.
In case your not also joking, these are just comments containing braces.
There are some functions that just aren't readable without heavy commenting.
Yup joking. I cheer people up with humor. I try to joke while I’m depressed but it just makes Me sound like an ahole.
Sir (or Madam) you are a genius!