elixir icon indicating copy to clipboard operation
elixir copied to clipboard

Deprecate record.__index__(field_name) in favor of record.__record__(:index, field_name)

Open josevalim opened this issue 13 years ago • 6 comments

josevalim avatar Jul 11 '13 07:07 josevalim

Working on a solution, unless someone else has something started.

jwarwick avatar Jul 11 '13 15:07 jwarwick

Motivation?

yrashk avatar Jul 11 '13 15:07 yrashk

@yrashk I think we should reduce the "metadata" functions if we can. What do you think?

josevalim avatar Jul 11 '13 15:07 josevalim

First reaction: "more to type". Not agreeing or disagreeing with the reality of this need.

yrashk avatar Jul 11 '13 15:07 yrashk

I like the idea that one module should only produce one metadata function. It reduces the chance of collisions if one should have many use Module statements that generates metadata functions.

ericmj avatar Jul 11 '13 16:07 ericmj

Sent a pull request (#1417) with a possible implementation.

jwarwick avatar Jul 11 '13 16:07 jwarwick