MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xvuqmq/cppythrusgosharp/19smfdam1yb0k/
r/ProgrammerHumor • u/Depixelation • 12d ago
36 comments sorted by
View all comments
Show parent comment
8
That's basically valid TypeScript, just have to remove the public
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
2
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
1
okay that's just Ada mixed in
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?)
readonly
const
1 u/FoxedDev 11d ago Ohh, true
Ohh, true
View all comments
Show parent comment
8
u/FoxedDev 12d ago
That's basically valid TypeScript, just have to remove the
public