Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor readme updates #7

Merged
merged 1 commit into from
Nov 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Visor

LeviySoft.Visor is a optics library for .NET
LeviySoft.Visor is an optics library for .NET

## Rationale

C# introduced record types, which are a first-class implementation of immutable data types.
C# 9 introduced record types, which are a first-class implementation of immutable data types.
While records are very useful for domain modeling, it can be pretty akward to modify deeply nested structures:

```csharp
Expand All @@ -23,8 +23,8 @@ var warehouse2 = warehouse with {
}
```

This problem becomes more serious with every new level of nesting,
and here optics come into the scene. The overall concept of optics
This problem becomes more annoying with every new level of nesting,
and here optics come on the scene. The overall concept of optics
is to abstract accessing (and modifying) immutable data from
the data itself. Let's generate `Lens` optic for the case above and see,
how can we re-write our modification:
Expand Down Expand Up @@ -71,4 +71,4 @@ Sample.DescriptionLens.Set("replaced")(...);

## Other notes

LeviySoft.Visor is a fork of Tinkoff.Visor maintained independently and not related to Tinkoff in any kind.
LeviySoft.Visor is an independently maintained fork of Tinkoff.Visor and is not related to Tinkoff in any kind.