101
u/Adept-Painting-543 1d ago
It's hideous, let's make it standard
52
u/davideogameman 1d ago •
![]()
I nominate you for the c++ standards committee, you have exactly the attitude that'll fit in
1
46
52
u/GatotSubroto
1d ago
•
Needs to make it
public static const main = () : void => {
…
};8
u/FoxedDev 1d ago
That's basically valid TypeScript, just have to remove the
public2
u/GatotSubroto 1d ago
Let me make it even better:
public static const main = () : void => begin … end;1
2
u/Aurarora_ 1d ago
typescript has access modifiers, if this were in a class the only issue would be that classes use
readonlyinstead ofconstfor some reason (c# influence I guess?)1
15
u/Wojtek1250XD 1d ago
NGL out of everything here the most cursed to me is the fact that there are no parenthesis after range, and the argument it recieves... is a range.
3
u/redlaWw 1d ago
It used to be that you could just do
for int i = 1..5, but old ranges were inefficient and confusing due to the fact that they were iterators themselves, rather than having a separate iterator type. In order to resolve this, a new range type was introduced, and a traditional range can be converted into a new range using the newly-introducedrangekeyword. Using old ranges for anything except constructing a new range has been deprecated, but they remain in the language for backwards-compatibility reasons.2
6
u/Duck_Devs 1d ago
It bothers me that stdout is a namespace here instead of some sort of file handle handler object
3
u/patrlim1 1d ago
An output namespace for shit like stderr, stdout, stdin, etc, would be interesting, but annoying. Having a namespace just for stdout is actually insane
Maybe stdout is a namespace in the std namespace?
3
u/InvisibleMoonWalker 1d ago
When you decide to take the worst parts from each language and combine them into one atrocity.
(The only thing missing to make this literally the worst version of all languages combined is not using public static final const void main(char[]*argc, std::Map**argv) or something)
3
2
2
2
1
1
1
0

155
u/IHeartBadCode 1d ago
This is like that picture where you can't recognize anything, but everything looks like something.