r/ProgrammerHumor • • 12d ago

Meme cppythRusGoSharp

Post image
306 Upvotes

36 comments sorted by

View all comments

53

u/GatotSubroto 12d ago • Mindblown

Needs to make it

public static const main = () : void => {
  …
};

8

u/FoxedDev 12d ago

That's basically valid TypeScript, just have to remove the public

2

u/GatotSubroto 12d ago

Let me make it even better:

public static const main = () : void => begin
  …
end;

1

u/FoxedDev 11d ago

okay that's just Ada mixed in

2

u/Aurarora_ 12d ago

typescript has access modifiers, if this were in a class the only issue would be that classes use readonly instead of const for some reason (c# influence I guess?)

1

u/FoxedDev 11d ago

Ohh, true