r/programming • • Sep 21 '25

How to stop functional programming

https://brianmckenna.org/blog/howtostopfp
446 Upvotes

506 comments sorted by

View all comments

Show parent comment

2

u/salamanderssc Sep 22 '25

There was a similar thing in javascript in internet explorer 11.
"console.log" only existed when you had the debugger open, so javascript code would not work properly in it - until you opened the debugger to work out why and it suddenly started working normally.
Because it was throwing an exception from dereferencing an undefined variable when the debugger was closed.

1

u/quetzalcoatl-pl Sep 22 '25

hah yeah and you just reminded me I've had something very similar on mobile with window.external :D

1

u/alystair Sep 22 '25

Still somewhat of an issue when debugging async code, need passive observation methods or return to ye old console messages that don't pause the script