bython icon indicating copy to clipboard operation
bython copied to clipboard

why

Open smokeytube opened this issue 3 years ago • 26 comments

smokeytube avatar Jul 08 '21 13:07 smokeytube

because

zeabdullah avatar Sep 03 '21 18:09 zeabdullah

ok

smokeytube avatar Sep 04 '21 07:09 smokeytube

@mathialo How do you not confuse braces from dictionaries and sets and braces from the syntax?

danon avatar Apr 04 '22 21:04 danon

@Danon The same way you do when coding with javascript and objects lol

ushu3323 avatar Aug 17 '22 00:08 ushu3323

trust me ... blocking out code segments via {...} is life~changing!

jacksonbrumbaugh avatar Aug 17 '22 05:08 jacksonbrumbaugh

@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.

danon avatar Aug 17 '22 08:08 danon

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

jacksonbrumbaugh avatar Aug 17 '22 08:08 jacksonbrumbaugh

Why not?

johnlettman avatar Sep 07 '22 18:09 johnlettman

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.

danon avatar Sep 07 '22 21:09 danon

Please leave this issue open forever or until you come to your senses and delete this repo, preferably the latter!

barrybarrette avatar Mar 22 '23 23:03 barrybarrette

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.

RickeyWard avatar Sep 06 '23 02:09 RickeyWard

because curly braces are pretty like flowers and vines adorning your code

sparklegem1 avatar Nov 21 '23 21:11 sparklegem1

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

dov avatar Mar 12 '24 09:03 dov

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.

zba avatar Apr 08 '24 05:04 zba