Skip to content

Conversation

@simeonschaub
Copy link
Member

This is a pretty useless PR, but I noticed this in https://discourse.julialang.org/t/how-is-matrix-defined/60325. Seems like this is just a relic from older versions of Julia, since type alias declarations should be declared as const automatically.

These changes were generated using the following command: perl -i -p -e 's/^const (.+\{.+\} =)/\1/g' **/*.jl.

This is a pretty useless PR, but I noticed this in https://discourse.julialang.org/t/how-is-matrix-defined/60325. Seems like this is just a relic from older versions of Julia, since type alias declarations should be declared as const automatically.

These changes were generated using the following command: `perl -i -p -e 's/^const (.+\{.+\} =)/\1/g' **/*.jl`.
@KristofferC
Copy link
Member

KristofferC commented Apr 30, 2021

FWIW, I prefer to keep them to make it consistent with the case without type parameters.

@simeonschaub
Copy link
Member Author

Ok, didn't expect this to be controversial. I always think of this syntax like short-form function definitions, where the const is also implicit. Since people seem to like the explicit const declaration though, I am just going to close this.

@simeonschaub simeonschaub deleted the sds/rm_const branch May 4, 2021 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants