Skip to content

[idea] Rename module into teal_module (and also modules into teal_modules) #1035

@pawelru

Description

@pawelru

A proposal: rename module() into teal_module() (and similarily modules() into teal_modules()).

Reasons:

  • in line with argument data that accepts what teal_data() returns
  • avoid confusion internally between modules argument value and modules() function

As a result we would be having something like this:

init(
  data = teal_data() |> ...
  modules = teal_modules(
    teal_module(...)
    ...
  )
)

I think it would more more consistent. Please tell me what you think about this.

This is a breaking change so it needs to be executed with appropriate deprecation strategy and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions