# Brackets for notes in source

**URL:** <https://forums.kodeco.com/t/brackets-for-notes-in-source/183895>\
**Category:** RxSwift\
**Created:** [February 13, 2023, 12:22am UTC](https://forums.kodeco.com/t/brackets-for-notes-in-source/183895 "2023-02-13T00:22:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![softways](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@softways](https://forums.kodeco.com/u/softways)\
**Post date:** [February 13, 2023, 12:22am UTC](https://forums.kodeco.com/t/brackets-for-notes-in-source/183895/1 "2023-02-13T00:22:01Z")

</div>

I just lost 15 mins of my life trying to figure out how RxSwift redefines [] because of this line in the First Edition:

```auto
[existing code: .subscribe(onDisposed: ..]

```

Or was that some objective C not properly converted into Swift? It kind of reads as a capture list, hmmmm…  
That’s a terrible terrible convention. Make it a proper comment! Those are all valid swift code symbols, it’s in the code typeface, and how many decades ago was the comment invented to solve this problem?  
(No idea if this has been changed in subsequent editions.)

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [July 29, 2023, 4:23pm UTC](https://forums.kodeco.com/t/brackets-for-notes-in-source/183895/2 "2023-07-29T16:23:00Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
