# SE-0330: Conditionals in Collections

**URL:** <https://forums.swift.org/t/se-0330-conditionals-in-collections/53375>\
**Category:** Proposal Reviews\
**Created:** [November 9, 2021, 3:07am UTC](https://forums.swift.org/t/se-0330-conditionals-in-collections/53375 "2021-11-09T03:07:42Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![gwendal.roue](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/gwendal.roue/32/13992_2.png) [@gwendal.roue](https://forums.swift.org/u/gwendal.roue)\
**Post date:** [December 9, 2021, 2:01pm UTC](https://forums.swift.org/t/se-0330-conditionals-in-collections/53375/27 "2021-12-09T14:01:29Z")

</div>

> [@tkremenek](#):
>
> Whether or not the syntax-based approach for conditional code should be abandoned entirely for a different approach, such as a lexer-based one.

The review of SE-0335 exhibits another case where lexer-based conditional compilation would help: [SE-0335: Introduce existential `any` - #24 by gwendal.roue](https://forums.swift.org/t/se-0335-introduce-existential-any/53934/24) (with the exhibition of an interesting use case: sharing one doc comment for multiple (conditionalized) declarations of a single documented item).

---

_[View the full topic](https://forums.swift.org/t/se-0330-conditionals-in-collections/53375)._
