Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Beginner lens / optics questions and points of confusion #2

Open
mrkgnao opened this issue Mar 20, 2018 · 3 comments
Open

Beginner lens / optics questions and points of confusion #2

mrkgnao opened this issue Mar 20, 2018 · 3 comments

Comments

@mrkgnao
Copy link
Collaborator

mrkgnao commented Mar 20, 2018

If there's something about optics you don't understand, please talk a little about it below.

Format

Include:

  • the language you're using (Haskell, PureScript, Scala, or something else?)

  • the library or implementation you're using (e.g. lens, microlens, or mezzolens for Haskell, purescript-profunctor-lenses for PureScript, ...)

  • how much experience you have with the language

  • as much other information as possible!

Code samples, type errors, and so on are also good if you have some.

All levels of experience welcome!

The process

Project maintainers will leave a 👍 reaction to indicate that we understand your question and that it has been added to a list.

This will help keep the issue free of useless "good point!" comments. If we have any further clarifications to ask for, we will do so.

Credits

@modernserf suggested we do this, i.e. collect questions that beginners are likely to have.

Current list

  • I know what lenses are, but what about the other optics? - @modernserf

  • What are lenses for? - @Kansattica

  • What are the alternative implementations to choose from, why are there so many, and what are the differences between them? - @Kansattica

@mrkgnao mrkgnao changed the title Lens / optics questions you'd like to see answered Beginner lens / optics questions and points of confusion Mar 20, 2018
@Kansattica
Copy link

As an absolute Haskell beginner, what problem does this solve? Why would I want to use one of these libraries, and why are there so many of them to choose from?

@ror6ax
Copy link

ror6ax commented Mar 20, 2018

How are lenses different from getters/setters in OO languages? They do look very much similar.

@ror6ax
Copy link

ror6ax commented Mar 20, 2018

Are there any "lens laws"?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants