mostly-adequate-guide icon indicating copy to clipboard operation
mostly-adequate-guide copied to clipboard

BlogController example misses different "this" binding

Open mcary opened this issue 10 years ago • 2 comments

ch2.md:109 equates the verbose and concise versions of BlogController. But in the verbose version, won't index be run with a "this"-context of Views, whereas in the concise version, index would be run in the "this"-context of BlogController?

That, then, is an important difference, particularly if Views.index uses any state of "this". While that may not fit the vision for functional programming, it's likely a reality that BlogController must accommodate in the broader world of mixed-paradigm programming.

This general concept is acknowledged later, but perhaps the caveat should be acknowledged sooner?

mcary avatar Aug 04 '15 23:08 mcary

It's a good thing to mention there. I'll put something in for sure. Thanks!

DrBoolean avatar Aug 10 '15 14:08 DrBoolean

@KtorZ Is this still an issue that needs to be addressed?

ahlusar1989 avatar Jul 27 '18 21:07 ahlusar1989