HackerTrans
TopNewTrendsCommentsPastAskShowJobs

cypressious

no profile record

Submissions

Kotlin: Emerging Patterns with Context Parameters

rakhman.info
1 points·by cypressious·11 miesięcy temu·0 comments

comments

cypressious
·8 miesięcy temu·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
·w zeszłym roku·discuss
Agreed. I use https://addons.mozilla.org/de/firefox/addon/youtube-anti-tra... to work around it.
cypressious
·4 lata temu·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.