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

re: Nice work on the functional paradigm Richard, Let me give you a couple ideas I use with piping and logging. Let's say we have this... const p1 ...

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