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

[Tim from Marketing] Some minor doc changes for clarity. #2308

Closed
Naeddyr opened this issue Sep 22, 2024 · 1 comment
Closed

[Tim from Marketing] Some minor doc changes for clarity. #2308

Naeddyr opened this issue Sep 22, 2024 · 1 comment

Comments

@Naeddyr
Copy link
Contributor

Naeddyr commented Sep 22, 2024

Just a typo:
Accessing a member of a variable which value is null will compile fine, but result in a NullReferenceException being thrown at runtime:

Should probably be something like

Accessing a member of a variable whose value is null will compile fine, but result in a NullReferenceException being thrown at runtime:

But as a beginner the explanation for the ?? operator is confusing:

```csharp
string? name1 = "John";
name1 ?? "Paul"; // => "John"
string? name2 = null;
name2 ?? "George"; // => "George"
```

This makes it seem like ?? isn't an operator (yes, I know it says in plain text that it's an operator) but a statement pseudo-assignment thing that marks name1 as having a default value to replace null. This also doesn't mention ??=. I noticed this when I was confused why the LSP was complaining about the statement not being valid. This just needs to be expanded a bit.

Copy link
Contributor

Hello. Thanks for opening an issue on Exercism 🙂

At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.

This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!

If you're interested in learning more about this auto-responder, please read this blog post.

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

No branches or pull requests

1 participant