News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by mirekrusin on Thursday April 25, 2024 @12:59AM (#40153595)
L in SOLID refers to Liskov substitution principles.

It's the only one from the SOLID list which can be typechecked - others are design principles.

"Flow adhering to it" means that violating code will be flagged by type system.

It matters because unlike other principles, violations can cause runtime errors.

Re:TypeScript: Branded Types by nsonha on Thursday April 25, 2024 @07:08PM (#40164177)
> L in SOLID refers to Liskov substitution

you think?

> Flow adhering to it" means that violating code will be flagged by type system

Shocking that type system can flag things