3 ms·
Yeah, UFCS remains illusive, but tantalizingly close. It's pretty easy to make ``` struct foo { void bar(); } bar(foo* i) { assert(i != nullptr); i->bar()
by cbsmith 4y ago
Yeah, UFCS remains illusive, but tantalizingly close. It's pretty easy to make
```
struct foo {
void bar();
}
bar(foo* i) { assert(i != nullptr); i->bar(); }
```
work, but there's enough syntactic complexity in the language that it isn't as easy as it should be.