# Including the requirement, but not the SILFunction in default witness tables

**URL:** <https://forums.swift.org/t/including-the-requirement-but-not-the-silfunction-in-default-witness-tables/4734>\
**Category:** Compiler\
**Created:** [December 18, 2016, 5:52am UTC](https://forums.swift.org/t/including-the-requirement-but-not-the-silfunction-in-default-witness-tables/4734 "2016-12-18T05:52:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Gottesman](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/michael_gottesman/32/280_2.png) [@Michael\_Gottesman](https://forums.swift.org/u/Michael_Gottesman)\
**Post date:** [December 18, 2016, 5:52am UTC](https://forums.swift.org/t/including-the-requirement-but-not-the-silfunction-in-default-witness-tables/4734/1 "2016-12-18T05:52:05Z")

</div>

Hey Slava.

I just noticed that when we print out the SIL for default witness tables:

sil\_default\_witness\_table \_CVarArgAligned {  
&nbsp;&nbsp;no\_default  
&nbsp;&nbsp;no\_default  
}

This really does not provide any information. Is it possible to include the requirement, but not the SILFunction. Then we could do this:

sil\_default\_witness\_table \_CVarArgAligned {  
&nbsp;&nbsp;method #\_CVarArgAligned.foo: no\_default  
&nbsp;&nbsp;method #\_CVarArgAligned.bar: no\_default  
}

That is at least easy to read and states what the requirement is.

Michael

---

<div class="post-metadata">

**Author:** ![Slava\_Pestov](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/slava_pestov/32/30204_2.png) [@Slava\_Pestov](https://forums.swift.org/u/Slava_Pestov)\
**Post date:** [December 18, 2016, 8:26am UTC](https://forums.swift.org/t/including-the-requirement-but-not-the-silfunction-in-default-witness-tables/4734/2 "2016-12-18T08:26:22Z")

</div>

That’s a good idea. Default witness tables are still not 100% done and need some work. I’ll be sure to revisit the printing part too.

Slava

> **···**
>
> > On Dec 17, 2016, at 9:52 PM, Michael Gottesman \<mgottesman@apple.com\> wrote:
> > 
> > Hey Slava.
> > 
> > I just noticed that when we print out the SIL for default witness tables:
> > 
> > sil\_default\_witness\_table \_CVarArgAligned {  
> > no\_default  
> > no\_default  
> > }
> > 
> > This really does not provide any information. Is it possible to include the requirement, but not the SILFunction. Then we could do this:
> > 
> > sil\_default\_witness\_table \_CVarArgAligned {  
> > method #\_CVarArgAligned.foo: no\_default  
> > method #\_CVarArgAligned.bar: no\_default  
> > }
> > 
> > That is at least easy to read and states what the requirement is.
> > 
> > Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Gottesman](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/michael_gottesman/32/280_2.png) [@Michael\_Gottesman](https://forums.swift.org/u/Michael_Gottesman)\
**Post date:** [December 18, 2016, 8:26am UTC](https://forums.swift.org/t/including-the-requirement-but-not-the-silfunction-in-default-witness-tables/4734/3 "2016-12-18T08:26:43Z")

</div>

Awesome!

Michael

> **···**
>
> > On Dec 18, 2016, at 12:26 AM, Slava Pestov \<spestov@apple.com\> wrote:
> > 
> > That’s a good idea. Default witness tables are still not 100% done and need some work. I’ll be sure to revisit the printing part too.
> > 
> > Slava
> > 
> > > On Dec 17, 2016, at 9:52 PM, Michael Gottesman \<mgottesman@apple.com\> wrote:
> > > 
> > > Hey Slava.
> > > 
> > > I just noticed that when we print out the SIL for default witness tables:
> > > 
> > > sil\_default\_witness\_table \_CVarArgAligned {  
> > > no\_default  
> > > no\_default  
> > > }
> > > 
> > > This really does not provide any information. Is it possible to include the requirement, but not the SILFunction. Then we could do this:
> > > 
> > > sil\_default\_witness\_table \_CVarArgAligned {  
> > > method #\_CVarArgAligned.foo: no\_default  
> > > method #\_CVarArgAligned.bar: no\_default  
> > > }
> > > 
> > > That is at least easy to read and states what the requirement is.
> > > 
> > > Michael
