duzenko

Results 34 comments of duzenko

> ```ts > export class CustomMissingTranslationHandler > implements MissingTranslationHandler { > tokens = {}; > > constructor(private parser: TranslateParser) {} > > handle(params: MissingTranslationHandlerParams): any { > return this.parser.interpolate( >...

What would be absolutely amazing is a hybrid of ?: and ?? `object.property ?? currency.format(object.property) : 'N/A'` Or even `object.property ?? currency.format($) : 'N/A'`

> > > All in all, probably not a viable syntax. I don't mind the exact syntax - the functionality is what matters

> > > coming up with a good syntax is a problem here. Here's my take: > > ```dart > if (obj👍) callFoo(obj); > if (obj👎) callSomethingElse(); > ``` >...