re: Practical Functional Programming in JavaScript - Side Effects and Purity VIEW POST

re: Glad to hear from you functional, interesting idea for a strongly typed log util. What are you using for that right now?

I'll do an article on logging and troubleshooting pipes later this week.
But here's an example of one of the log utils throwing on an unexpected type...

logging functional pipelines

This seems like a poor man's TypeScript.

Typescript does not do runtime type checking.

Because I'm saying you should check it at compile time

That won't help you with dynamic data at runtime.
That's where the runtime bugs are.
Thus this is outside the scope of Typescript.

Ok then I guess I misunderstood, sorry

Code of Conduct Report abuse