the.bay.news

Curly Braces Considered Harmful

Discussions on Python.org
Curly Braces Considered Harmful
Curly braces are unpythonic and ugly. But Python is full of them, because of f-strings, dicts and sets. My proposal is to completely eliminate curly braces from the language. Using a curly brace in the code will raise a SyntaxError. To replace curly braces, I suggest using “❤”. The fact that UTF-8 chars are not on the keyboard may be a problem, but I’m quite sure soon or later the emojis will be added to our favorite layouts. This might invalidate some existing programs. But probably th...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.