HackerTrans
TopNewTrendsCommentsPastAskShowJobs

cypressious

no profile record

Submissions

Kotlin: Emerging Patterns with Context Parameters

rakhman.info
1 points·by cypressious·il y a 11 mois·0 comments

comments

cypressious
·il y a 8 mois·discuss
It seems Rust's unwrap is the exact opposite of ?? "". It throws an error instead of using a fallback value, which is exactly what the author suggests instead of using ?? "".
cypressious
·l’année dernière·discuss
Agreed. I use https://addons.mozilla.org/de/firefox/addon/youtube-anti-tra... to work around it.
cypressious
·l’année dernière·discuss
Web notifications are opt-in.
cypressious
·il y a 4 ans·discuss
Have you tried `const enum`?

See https://www.typescriptlang.org/docs/handbook/enums.html#cons...

> Const enums can only use constant enum expressions and unlike regular enums they are completely removed during compilation. Const enum members are inlined at use sites.