brokenix,

lenses are just functional references

BoydStephenSmithJr,
@BoydStephenSmithJr@hachyderm.io avatar

@brokenix Yep, that's what van Laarhoven called them. 15 years ago: https://www.twanvl.nl/blog/haskell/cps-functional-references.

brokenix,

@BoydStephenSmithJr whats it called now ?

BoydStephenSmithJr,
@BoydStephenSmithJr@hachyderm.io avatar

@brokenix "lenses" or more generally (swap out some of the -> for another profunctor) "optics".

I still like the "functional references" name, those that doesn't generalize well, and I feel like a lot I'm trying to teach lenses wouldn't have much insight sparked by the name "(imperative) references".

  • All
  • Subscribed
  • Moderated
  • Favorites
  • haskell
  • Durango
  • DreamBathrooms
  • everett
  • magazineikmin
  • osvaldo12
  • Youngstown
  • khanakhh
  • slotface
  • mdbf
  • rosin
  • thenastyranch
  • kavyap
  • cubers
  • InstantRegret
  • megavids
  • tester
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • cisconetworking
  • ngwrru68w68
  • normalnudes
  • provamag3
  • modclub
  • Leos
  • anitta
  • JUstTest
  • lostlight
  • All magazines