bython
bython copied to clipboard
why
because
ok
@mathialo How do you not confuse braces from dictionaries and sets and braces from the syntax?
@Danon The same way you do when coding with javascript and objects lol
trust me ... blocking out code segments via {...} is life~changing!
@Danon The same way you do when coding with javascript and objects lol
Which is how exactly?
JavaScript is the only langauge I know that has the same syntax for object literals and blocks, and I think it's a hige design flaw in the langauge. I don't think you should repeat that mistake.
If u like to count ur indentations to ensure that lines of code are within ur "def" or "if" statements => all power & luck to ya ... mostly the luck haha that's what ull need more of
Why not?
If u like to count ur indentations to ensure that lines of code are within ur "def" or "if" statements => all power & luck to ya ... mostly the luck haha that's what ull need more of
Then you can use end
keyword like in Ruby.
Or, if you want {
/}
for blocks, don't also use {
/}
for dictionaries, and say, only allow dict()
syntax.
Please leave this issue open forever or until you come to your senses and delete this repo, preferably the latter!
JavaScript is the only langauge I know that has the same syntax for object literals and blocks, and I think it's a hige design flaw in the langauge. I don't think you should repeat that mistake.
You've never used c or c++ ?
Structure literals (objects before oop) are denoted using curly braces, just as its scope blocks are. It's been that way for 50 years and a lot of languages followed in its foot steps. So... rust, zig, go, c, cpp, JavaScript, c# and I'm sure many others all have some type of literal objects with curly braces while still having curly brace code blocks.
I'm not arguing one way or the other in this case, just confused why anyone would say this unless there never used c or any other c family programming language.
because curly braces are pretty like flowers and vines adorning your code
Why stop at braces, when there are a lot more bracket like symbols in Unicode :-) !? Here's one example:
if (foo < bar) ⦃
# Your code here!
⦄
For additional examples see:
- http://xahlee.info/comp/unicode_matching_brackets.html
- http://xahlee.info/comp/unicode_math_brackets.html
Why stop at braces, when there are a lot more bracket like symbols in Unicode :-) !? Here's one example:
Because input for unicode inconvenient from keyboard.