Open smokeytube opened 3 years ago
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:
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.
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:
great idea, now instead pressing "{" and "}" directly on my keyboard, now i should use macro then bind "{" to copy then paste "⦃" i love it!
On 31 Aug 2024, at 19:46, Fatih Al-Aziz @.***> wrote:
Why stop at braces, when there are a lot more bracket like symbols in Unicode :-) !? Here's one example: if (foo < bar) ⦃
⦄
For additional examples see:
http://xahlee.info/comp/unicode_matching_brackets.html http://xahlee.info/comp/unicode_math_brackets.html
great idea, now instead pressing "{" and "}" directly on my keyboard, now i should use macro then bind "{" to copy then paste "⦃" i love it!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
Because it's possible 😂
Just a comment that user input shouldn't be a problem using something like ⦃, as you can always have the editor automatically merge the two characters "{|" after they have been input. Oldtimers like me may even remember that for Pascal (*
and *)
were equivalent to {
and }
because there were input encodings that did not support them. So you could in theory make your language support either two character versions like {|
, or (:
, or fancy unicode "joined" versions. (As long as there are no syntax clashes of course...).
why
Somebody close this!
Somebody close this!
That has "Quick! Kill it before it lays eggs!!" energy
hello
why not
hello
by @smokeytube2
What happened to @smokeytube?
trust me ... blocking out code segments via {...} is life~changing!
Agreed, made life more difficult
hello
by @smokeytube2What happened to @smokeytube?
Lost my 2FA recovery codes
because