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

!.[true] errors rather than broadcasting ! #20039

Closed
Sacha0 opened this issue Jan 14, 2017 · 5 comments
Closed

!.[true] errors rather than broadcasting ! #20039

Sacha0 opened this issue Jan 14, 2017 · 5 comments
Labels
broadcast Applying a function over a collection

Comments

@Sacha0
Copy link
Member

Sacha0 commented Jan 14, 2017

julia> versioninfo()
Julia Version 0.6.0-dev.2075
Commit fe1f663* (2017-01-14 01:37 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin15.6.0)
  CPU: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, ivybridge)

julia> !.[true]
ERROR: syntax: invalid identifier name "."

Expected behavior: broadcast(!, [true]). Ref. #20037 (comment). Best!

@Sacha0 Sacha0 added bug Indicates an unexpected problem or unintended behavior broadcast Applying a function over a collection labels Jan 14, 2017
@nalimilan
Copy link
Member

Should be .! instead, right? Doesn't work either:

julia> .!
ERROR: syntax: invalid operator ".!"

@Sacha0
Copy link
Member Author

Sacha0 commented Jan 14, 2017

Should be .! instead, right?

I've seen ! only as prefix unary, whereas dotprefix-ops are typically infix binary? Best!

@stevengj
Copy link
Member

If I recall correctly, unary dot operators are not yet implemented. (√.[1,2,3] gives a similar error.)

@stevengj
Copy link
Member

(!).([true]) works, of course.

@Sacha0 Sacha0 removed the bug Indicates an unexpected problem or unintended behavior label Jan 14, 2017
@Sacha0
Copy link
Member Author

Sacha0 commented Feb 21, 2017

Closed by #20249 (with .! rather than !.). Best!

@Sacha0 Sacha0 closed this as completed Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broadcast Applying a function over a collection
Projects
None yet
Development

No branches or pull requests

3 participants