# Didc skip duplicate binding instead of error

**URL:** <https://forum.dfinity.org/t/didc-skip-duplicate-binding-instead-of-error/26532>\
**Category:** Developers\
**Created:** [January 12, 2024, 7:50am UTC](https://forum.dfinity.org/t/didc-skip-duplicate-binding-instead-of-error/26532 "2024-01-12T07:50:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [January 12, 2024, 7:50am UTC](https://forum.dfinity.org/t/didc-skip-duplicate-binding-instead-of-error/26532/1 "2024-01-12T07:50:57Z")

</div>

Is there an option to skip duplicate bindings instead of throwing an error when using `didc`?

A.did:

```auto
import service "b.did";

type Demo = record { "text" : text };
service : { greet : (text) -> (Demo) query }

```

B.did

```auto
type Demo = record { "text" : text };
service : { hello : () -> (Demo) query }

```

> didc bind -t ts src/dev\_backend/a.did  
> Error: duplicate binding for Demo

---

<div class="post-metadata">

**Author:** ![chenyan](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@chenyan](https://forum.dfinity.org/u/chenyan)\
**Post date:** [January 12, 2024, 5:21pm UTC](https://forum.dfinity.org/t/didc-skip-duplicate-binding-instead-of-error/26532/2 "2024-01-12T17:21:12Z")

</div>

Currently not. Due to recursive definitions, it’s not easy to identify if two definitions are equivalent. If the two definitions are identical, can they just appear in one place?

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [January 12, 2024, 6:02pm UTC](https://forum.dfinity.org/t/didc-skip-duplicate-binding-instead-of-error/26532/3 "2024-01-12T18:02:36Z")

</div>

Not in my use case, which I admit is not the most common use case. However, I may ultimately find another way to meet my requirements, so it’s alright. If not, I’ll definitely let you know. Thanks for the feedback.
