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

Allowing space between function and arguments [fn (...)] #18542

Closed
fbruetting opened this issue Sep 16, 2016 · 4 comments
Closed

Allowing space between function and arguments [fn (...)] #18542

fbruetting opened this issue Sep 16, 2016 · 4 comments
Labels
won't change Indicates that work won't continue on an issue or pull request

Comments

@fbruetting
Copy link
Contributor

I think it's rediculous that I get a deprecation warning, every time I make a space in between. This is personal style and has absolutely nothing to do with functionality, so this shouldn't be "deprecated".

Arguments pro:
1.) More orientation by separation of functions and arguments.
2.) One can align the arguments of serverals functions for an easier overview (especially on first sight), and this gives more orientation by scrolling through a long code file, too.

Arguments contra:

  • I cannot imagine a single reason. -
@andreasnoack
Copy link
Member

See #7232 and #11891

@simonster
Copy link
Member

simonster commented Sep 16, 2016

Ironically, the best argument contra is precisely [fn (...)]

@fbruetting
Copy link
Contributor Author

fbruetting commented Sep 16, 2016

Julia would know that fn is a function, so that it could sum up until the closing parenthesis, this should be no issue at all. Every other language I know of can deal with this.

(And I don't like this whitespace-delimitation and prefer the matlab syntax.)

@yuyichao yuyichao added the won't change Indicates that work won't continue on an issue or pull request label Sep 16, 2016
@nalimilan
Copy link
Member

Julia would know that fn is a function, so that it could sum up until the closing parenthesis, this should be no issue at all. Every other language I know of can deal with this.

Knowing that fn is a function doesn't fix the problem. This is a perfectly valid operation:

julia> [sum (1, 2)]
1×2 Array{Any,2}:
 sum  (1,2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
won't change Indicates that work won't continue on an issue or pull request
Projects
None yet
Development

No branches or pull requests

5 participants