Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lolnick447yUsing this construct is actually a super dangerous programming practice because of how brittle it is. Google "goto fail".
-
lolnick447y@lolnick @lolnick oh jeez. I didn't even realize how terrible this is. I just assumed it was a regular "I'm using single line conditionals" kind of terrible code.
-
This causes me pain. Why is this a thing?
Most of my problems are semicolon and/or bracket related. I'd still be stuck somewhere near "hello world" if i did this. -
You could just make a script that adds braces (and semicolons) based on the indentation.
-
mt3o19137yWhy braces are so bad? I've seen more troubles with python indentation than you can imagine.
Not to mention ability to autoformat the source code or formatting it by hand to something different if there is a special need. -
@RAZERZ Really? I thought only semicolons are optional. I'll try it out when I'm back home.
-
RAZERZ26537y@LinusCDE now that I think about it, it might have been only semicolons. It'd make more sense that way
-
@andros705 Opposite with me. I did it because I wanted something new instead of Java all these years. But hated it for years before.
-
@andros705 the brackets in LUA are "then"/"do" and "end"
If I remember correctly it is. Technically there are still braces but just a different character (when I do lua I have those words as macro) -
Nastrand1897yThis must be insanely hard to create and modify but first nice to read java code ever...
The braces in all the languages are so useless and make the code painful to read, I've been using Python for 3 years now and never had a problem with indentation.
I don't know why al the language can't do the same -
@Nastrand got a question, how does indenting work if you have a function which expects a few long arguments and you want to multi-line it so its more readable?
-
Nastrand1897y@Codex404 you can check PEP 8 to see style guidelines in Python, but let me try to write it here
def function(firstReallyLongArg,
secondReallyLongArg,
thirdReallyLongArg)
I hope the format doesn't get fucked up -
Nastrand1897y@Codex404 because the parenthesis, the indentation system in Python is really good k never had troubles using it
-
devios157017yI don't like languages that dictate what whitespace I can use, or treat whitespace as having semantic meaning. To me, whitespace is my domain. You get to decide what the symbols mean, but the moment you assign meaning to a tab I'm out.
Don't get me wrong I think Python is a decent language, but I just cannot agree with semantic whitespace. -
Silvus1037y@devios1 I think the stuff in comments are my domain, and everything else is to be code. But I was started in Pascal with a teacher who cared about indentation, and everything else.
Ohhh helll nooooo
undefined