Skip to content

Conversation

lackac
Copy link
Contributor

@lackac lackac commented Aug 1, 2018

No description provided.

assert Autolink.typespec(
quote(do: parameterized_t(foo())),
[parameterized_t: 1, foo: 0],
[]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move at least one of those to a var so the call fits a single line?

Copy link
Contributor Author

@lackac lackac Aug 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would shortening the type name be a good compromise? For example t(foo())? The test description should be enough to learn that these are parameterized.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good to me.

assert Autolink.elixir_functions("`ModA.example/1` and `ModB.example/2`", [
"ModA.example/1",
"ModB.example/2"
]) ==
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please keep this example and previous ones in the previous syntax? I.e. one argument per line with the whole list on a single line? Thanks!

@josevalim josevalim merged commit ed7d7e4 into elixir-lang:master Aug 1, 2018
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@lackac lackac deleted the format-code branch August 1, 2018 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants