Skip to content

ReadMe.md: add code snippets#12

Open
knocte wants to merge 15 commits into
mainfrom
wip/codeSnippets
Open

ReadMe.md: add code snippets#12
knocte wants to merge 15 commits into
mainfrom
wip/codeSnippets

Conversation

@knocte
Copy link
Copy Markdown
Contributor

@knocte knocte commented May 16, 2026

No description provided.

@knocte knocte force-pushed the wip/codeSnippets branch from bce9f26 to 787ae3c Compare May 16, 2026 09:30
knocte added 9 commits May 16, 2026 18:33
* Consistency across raw TS and Effect snippets wrt helper func.
* Reduce DRY via str, n, foo vars.
* Use camelCase for params, as it's generally the case for TS.
So that user really sees the real indentation magnification
for Effect.ts' Option.match.
In Effect snippet, to be consistent with other snippets.
@knocte
Copy link
Copy Markdown
Contributor Author

knocte commented May 17, 2026

TODO: research

  • strictNullChecks edge cases? p.ej. Pi's issue 4606
  • intellisense on Effect delegates?

Comment thread ReadMe.md
// prints true
console.log(TypeHelpers.isInstanceOf(foo, Foo));
// prints false
console.log(TypeHelpers.isInstanceOf(foo, Bar));
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@knocte maybe we should change this to Is.of(foo, Bar).isSome and make the value have the casted value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant