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
-
-
@jespersh no, it does not. I have seen it before but I thought it was some student's thingy and today I seen someone use it again...
I think these people need help... -
C0D4681455ywhich language?
is it comments?
because outside of a php.ini file, i ain't ever come across ; as a comment before -
@C0D4
just seen it PHP which pissed me off. I guess if you scout internet too much you see weird bullshit.
Before seen it in JS.
Not .ini but normal .php file. -
C0D4681455y@DubbaThony normal php?
a semi colon isn't interpreted as a comment, even multiple in a row
$this->xyz;;;;;;
Although valid is weird to do. But anything after it would be considered a new line.
$this->xyz;;;;;;haha
Would throw an undefined constant "haha" unless it was a constant 🤦♂️
Got an example? -
@C0D4
I know it's techincally valid.
I mean its annoying to have (or read code example with) semicolon in beginning of next line instead of end of statement. -
SomeNone7135ySemicolons for starting a comment were common in assembly language (certainly on both 6502/6510 and 680x0, probably many others as well).
-
@SomeNone
But thats not comment!
Thats whole point of why it annoyed the hell out of me.
I repeat, its not a comment, but semicolon after statement ;-; -
Only a monster would see this and think it should be followed. Oh brave new world that has such people in it
-
This is the first time that I see this and hopefully also the last time. It's ridiculous.
-
orhun12535yWhat the actual fuck is this?
What kind of insanity level is that?
Why the fuck I'm crying? -
C0D4681455y@cfood i think the problem here is the semi colon in every new line before the next statement like below.
@DubbaThony correct me if I'm wrong.
@highlight
this->foor()
; this-bar()
;
# instead of:
this->foo();
this->bar(); -
SomeNone7135y@C0D4 The problem is statements as such, I'd rather program in an expression-based language, where, for the most part, semicolons are not required.
-
@highlight
And i see that again ;-;
Yes, i was ranting about exacly, pinpoint THAT.
Now please, let me not look at it, it hurts me internally -
That’s interesting.... I definitely don’t like it, for obviously reasons .. but it does pose one advantage.. you can quickly scan down your code if the semi colon isn’t at the beginning then you know the line above is fucked.. but due to everything else this wouldn’t be feasible since it would hinder readability unless we rethought brackets aswell.
Again it’s terrible design and who ever did it I hope they don’t always do it but it does bring up something interesting to think about. -
@QuanticoCEO Which is useless because your IDE will tell you so. Unless you have a weird case like "
a = 1
b++;
", but considering that I have never had issues because of a missing semicolon since.. forever I guess, I'd still consider it quite pointless and definitely not worth the decrease in readability. Plus the issue that your statements are now terminated in another line, more likely to introduce issues by making an edit and since not every single line requires a termination, I don't even see how a line without it would be fucked in any case. If you are so terrible that you are considering this, write an Addon for your IDE to highlight every line that doesn't contain a semicolon - effectively the same without completely destroying readability.
PS: Wow, I can't believe I took this seriously.
Related Rants
-
athlon9Schrödinger’s semicolon Source: reddit r/programming
-
makwayne7So this happened in my computer science class Creepy guy trying to be cheesy (to this pretty girl): "you're ...
-
Pointer19School time, programming class: Girl: Hey, Can you help me? Me: Sure, what's up? G: I have an error but I don'...
Okay, I have no idea who spreads that semicolon idea but it must be stopped. NOW.
someStatement
;someStatement
;someStatement
;
WHY?
rant
unclean-code
semicolon