r/ProgrammerHumor • • 13d ago

Meme cppythRusGoSharp

Post image
310 Upvotes

37 comments sorted by

View all comments

Show parent comment

8

u/FoxedDev 13d ago

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

3

u/Aurarora_ 13d 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 12d ago

Ohh, true

1

u/the_horse_gamer 12h ago

I think it's cuz readonly gets stripped during transpiling , but not const

2

u/GatotSubroto 13d ago

Let me make it even better:

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

1

u/FoxedDev 12d ago

okay that's just Ada mixed in