quartz-research-note/content/見慣れないと難解であるを混同してはならない.md

17 lines
853 B
Markdown
Raw Normal View History

#scrap #memo
[[uiua]]のドキュメントに貼ってあったもの
[Now I Am Become Perl —](https://vector-of-bool.github.io/2018/10/31/become-perl.html)
> Youll also find when encountering a new syntax that you will immediately not understand, and instead wish for something much simpler. Non-C++ programers, for example, will raise an eyebrow at the following snippet:
```cpp
[&,=foo](auto&& item) mutable -> int { return item + foo.bar(something); }
```
> I remember my first encounter with C++ lambdas, and I absolutely _hated_ the syntax. It was foreign and unfamiliar, but other than that, my complaints stopped. I could have said “This is confusing,” but after having written C++ lambda expressions for years the above syntax has become second nature and very intuitive. **Do not confuse familiarity with simplicity.**