Coder Social home page Coder Social logo

Comments (8)

pminten avatar pminten commented on August 15, 2024

It's a bit complicated as there's also things like modules which can be used as behaviours, who have a special tag in ex_doc right now. And we're likely to see more of these as Elixir evolves.

I do understand your point though and having the exceptions clutter up the records list isn't ideal.

This discussion is likely to go much broader than exceptions and records fairly quickly, so can we move it to the mailing list?

from ex_doc.

josevalim avatar josevalim commented on August 15, 2024

I would honestly move records to the regular group. Leave the other tabs
being Protocols and Exceptions.

from ex_doc.

ericmj avatar ericmj commented on August 15, 2024

IMO, it should be Modules, Protocols, Exceptions, Records. Behaviours should be in Modules like it is today. Anything that has a special macro for generating a form of module should have a separate tab. defmodule, defprotocol, defexception, defrecord.

from ex_doc.

pminten avatar pminten commented on August 15, 2024

That's going to be a lot of tabs.

from ex_doc.

ericmj avatar ericmj commented on August 15, 2024

@pminten One more tab than there is today (Exceptions).

from ex_doc.

josevalim avatar josevalim commented on August 15, 2024

The thing is that records are going to be even less important once R17 is out. And I think putting them together with modules makes sense from the user perspective. For example, a HashDict is a record, a Range as well, why you need to search one in one tab and the other in the other?

from ex_doc.

pminten avatar pminten commented on August 15, 2024

But with HashDict how would you (as user) know that it's really a data type "object" module? Specifically knowing that HashDict can be used with defimpl would be useful.

from ex_doc.

josevalim avatar josevalim commented on August 15, 2024

@pminten Ah, that's a good point. So maybe that is the distinction we should make.

from ex_doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.