MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xvuqmq/cppythrusgosharp/19sm0t91qo6ki/
r/ProgrammerHumor • u/Depixelation • 19d ago
37 comments sorted by
View all comments
53
Needs to make it
public static const main = () : void => { … };
8 u/FoxedDev 18d ago That's basically valid TypeScript, just have to remove the public 3 u/Aurarora_ 18d 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 17d ago Ohh, true 1 u/the_horse_gamer 5d ago I think it's cuz readonly gets stripped during transpiling , but not const 2 u/GatotSubroto 18d ago Let me make it even better: public static const main = () : void => begin … end; 1 u/FoxedDev 17d ago okay that's just Ada mixed in
8
That's basically valid TypeScript, just have to remove the public
public
3 u/Aurarora_ 18d 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 17d ago Ohh, true 1 u/the_horse_gamer 5d ago I think it's cuz readonly gets stripped during transpiling , but not const 2 u/GatotSubroto 18d ago Let me make it even better: public static const main = () : void => begin … end; 1 u/FoxedDev 17d ago okay that's just Ada mixed in
3
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 17d ago Ohh, true 1 u/the_horse_gamer 5d ago I think it's cuz readonly gets stripped during transpiling , but not const
1
Ohh, true
I think it's cuz readonly gets stripped during transpiling , but not const
2
Let me make it even better:
public static const main = () : void => begin … end;
1 u/FoxedDev 17d ago okay that's just Ada mixed in
okay that's just Ada mixed in
View all comments
53
u/GatotSubroto 19d ago •
Needs to make it