6 ms·
Python already has support for optional braces. def say_word(word): #{ print(word) #}
by dugword 6y ago
Python already has support for optional braces.
def say_word(word): #{
print(word)
#}
- polotics 6y agoSir (or Madam) you are a genius!
- wmichelin 6y agobeing technically correct is the best kind of correct.
- slowhadoken 6y agoWhat??? I had no idea. You’re beautiful.
- wutbrodo 6y agoIn case your not also joking, these are just comments containing braces.
- retrac 6y agoThere are some functions that just aren't readable without heavy commenting.
- slowhadoken 6y agoYup joking. I cheer people up with humor. I try to joke while I’m depressed but it just makes Me sound like an ahole.
- makapuf 6y agoYou can also use #begin and #end, of course.
- jojobas 6y agoAutomatically fixes mismatched braces as well!
- quietbritishjim 6y agoVery 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).
- smitty1e 6y agoI had never heard "#" pronounced "optional". OptionalTheMoreYouKnow