4 ms·
I just can't bring myself to use curly bracket languages. I can't make a good enough case for any of them. I read way too much code to make myself read code th
by adenozine 6y ago
I just can't bring myself to use curly bracket languages. I can't make a good enough case for any of them.
I read way too much code to make myself read code that's not beautiful.
- shadowgovt 6y agoDo you use a different solution for frontend web development, or is frontend web development a domain you get to avoid?
- tester34 6y agowhat are alternatives? python's tabs?
- recursive 6y agolisp?
- ben509 6y agoThe major choices that avoid braces are indentation and keywords. Indentation's upsides are less line noise. In my opion, while there's less noise, there's less symmetry, so it's a wash on the beauty count. Indentation breaks many tools, especially the way amateur coders use them. They're frequently showing code snippets by copy-pasting into web pages that strip indentation. Notably, the standard pylint rules insist on two lines between functions and classes because the extra whitespace helps people find things. That same whitespace you get if you close a function with a single brace... Keywords are surprisingly nice. Lua does them very well: function foo() doSomeStuff end You get rid of the pointless { at function, and you have a simple "end" when you're done.
- jdxcode 6y agothat's an odd take considering the article is comparing JS/TS which have an identical amount of curly brackets
- badtakemaybe 6y agoOh boy do I have a programming language for you. Enjoy! https://en.wikipedia.org/wiki/Curl_(programming_language) https://en.wikipedia.org/wiki/Curl_(programming_language)