Elixir version
Future Elixir versions
Database and Version
All
Ecto Versions
All
Database Adapter and Versions (postgrex, myxql, etc)
All
Current behavior
Currently we define a dynamic/1 macro but:
- Elixir's type system also has a
dynamic/1 and they will be confusing
- Elixir's kernel may also get a
dynamic/1 function, which may cause conflicts
Expected behavior
Rename it to something else. The question is what:
dynamic_query is redundant as it is defined in Ecto.Query
dynamic_fragment feels incompatible as fragments are strings
dynamic_expr feels too technical? It can be because I am not a native speaker
Thoughts @greg-rychlewski?
Elixir version
Future Elixir versions
Database and Version
All
Ecto Versions
All
Database Adapter and Versions (postgrex, myxql, etc)
All
Current behavior
Currently we define a
dynamic/1macro but:dynamic/1and they will be confusingdynamic/1function, which may cause conflictsExpected behavior
Rename it to something else. The question is what:
dynamic_queryis redundant as it is defined in Ecto.Querydynamic_fragmentfeels incompatible as fragments are stringsdynamic_exprfeels too technical? It can be because I am not a native speakerThoughts @greg-rychlewski?