Exploring Operator Overloading a Custom String Type

preview_player
Показать описание
I have a really, really bad idea. I'd like to create a string that can be appended to or prepended to using custom operators. The goal here is to demonstrate the use of operator overloading, but also offer a bit of caution about creating operators that do not do the expected behavior.

Some examples of what this syntax might look like when using normal strings:

```csharp
"Hello" ) "WorldOfZero" == "HelloWorldOfZero"
"Hello" ( "WorldOfZero" == "WorldOfZeroHello"
```

*Note: I'm using parentheses here instead of angled brackets - angled brackets aren't supported in YouTube descriptions*

Рекомендации по теме
Комментарии
Автор

Completely underrated channel. You have some really great content, and you really break it down to a basic level that even new developers can understand.

DumbGameDev
Автор

What shader are you using for your hair?

xaxababa