3 ms·
Actually, yes, TypeScript uses OOP patterns like classes and interfaces: https://github.com/ReactiveX/rxjs/blob/master/src/Observable.ts https://github.com/Rea
by bsimpson 10y ago
Actually, yes, TypeScript uses OOP patterns like classes and interfaces:
https://github.com/ReactiveX/rxjs/blob/master/src/Observable.ts https://github.com/ReactiveX/rxjs/blob/master/src/Observable...
But they also use the pipeline operator (::) to chain together methods in a way that's effectively functional.
- sotojuan 10y agoInteresting! More interesting is that apparently the TS compiler itself uses no classes. I just think jeremiep is conflating static typing with Java-style OOP and "design patterns".