# Base.div vs Html.div - specialize or not?

**URL:** <https://discourse.julialang.org/t/base-div-vs-html-div-specialize-or-not/47776>\
**Category:** General Usage\
**Created:** [October 5, 2020, 9:35am UTC](https://discourse.julialang.org/t/base-div-vs-html-div-specialize-or-not/47776 "2020-10-05T09:35:36Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [October 7, 2020, 10:55am UTC](https://discourse.julialang.org/t/base-div-vs-html-div-specialize-or-not/47776/20 "2020-10-07T10:55:14Z")

</div>

> [@Jean\_Michel](#):
>
> I disagree with the viewpoint " `div` does division so it should never be used for another purpose".

You are of course free to use `div` to mean whatever you want in your own package but if you extend `Base.div` it should mean the same. Otherwise, you have no idea what generic code means because you don’t have concrete types available at that point. Maybe you forgot [Function name conflict: ADL / function merging?](https://discourse.julialang.org/t/function-name-conflict-adl-function-merging/10335) where this was explained in detail.

---

_[View the full topic](https://discourse.julialang.org/t/base-div-vs-html-div-specialize-or-not/47776)._
