Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning for type piracy during interactive use? #30805

Open
stevengj opened this issue Jan 22, 2019 · 0 comments
Open

warning for type piracy during interactive use? #30805

stevengj opened this issue Jan 22, 2019 · 0 comments
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@stevengj
Copy link
Member

stevengj commented Jan 22, 2019

I wonder if we should issue a warning, at least for code evaluated in the Main module, perhaps only when isinteractive() (i.e. in the REPL and similar), when type piracy occurs.

This is a practice that we usually don't recommend and is an easy way for newcomers to shoot themselves in the foot with baffling error messages. See e.g. #29321, #27926, #26528, #22363, etcetera.

@stevengj stevengj added the stdlib:REPL Julia's REPL (Read Eval Print Loop) label Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

1 participant