HackerTrans
TopNewTrendsCommentsPastAskShowJobs

cypressious

no profile record

Submissions

Kotlin: Emerging Patterns with Context Parameters

rakhman.info
1 points·by cypressious·há 11 meses·0 comments

comments

cypressious
·há 8 meses·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
·ano passado·discuss
Agreed. I use https://addons.mozilla.org/de/firefox/addon/youtube-anti-tra... to work around it.
cypressious
·ano passado·discuss
Web notifications are opt-in.
cypressious
·há 4 anos·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.