Starting a new thread.
-- Was just thinking... Implicit would be a lot less scary for me if the IDE helped. The scary thing about Implicits is that you don't know when they are doing something to your code. For example, when my team replaced all the JavaConversions with JavaConverters, we discovered all sorts of unintended conversions sprinkled throughout our code. Your code can behave very differently from the way it reads. If the IDEA highlighted Implicit usage, perhaps in a different color or something, you would know it was there. Hovering with the mouse could bring up a explanation of what Implicit was active, and what it was doing. Implicit is a cool idea. Perhaps it is just a problem with the development environment. Peter You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
I think that's almost exactly what the Eclipse Scala IDE already does. I would think other IDEs have similar functionality.
-- Op dinsdag 28 maart 2017 20:05:01 UTC+2 schreef Peter Wolf:
You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Peter Wolf
On 03/28/2017 02:05 PM, Peter Wolf wrote:
> If the IDEA highlighted Implicit usage, perhaps in a different color or > something, you would know it was there. Hovering with the mouse could > bring up a explanation of what Implicit was active, and what it was doing. The Eclipse plugin (ScalaIDE) does this currently. It's very handy. > > Implicit is a cool idea. Perhaps it is just a problem with the > development environment. > > Peter > > -- > You received this message because you are subscribed to the Google > Groups "scala-user" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email] > <mailto:[hidden email]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Jasper-M
IntelliJ IDEA also highlights implicit conversions. On Tue, Mar 28, 2017 at 2:19 PM, Jasper-M <[hidden email]> wrote:
-- You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Peter Wolf
intellij and i think eclipse are both doing that
Gesendet: Dienstag, 28. März 2017 um 20:05 Uhr
Von: "Peter Wolf" <[hidden email]> An: scala-user <[hidden email]> Betreff: [scala-user] Implicit and IDE Support Starting a new thread.
Was just thinking... Implicit would be a lot less scary for me if the IDE helped.
The scary thing about Implicits is that you don't know when they are doing something to your code. For example, when my team replaced all the JavaConversions with JavaConverters, we discovered all sorts of unintended conversions sprinkled throughout our code. Your code can behave very differently from the way it reads.
If the IDEA highlighted Implicit usage, perhaps in a different color or something, you would know it was there. Hovering with the mouse could bring up a explanation of what Implicit was active, and what it was doing.
Implicit is a cool idea. Perhaps it is just a problem with the development environment.
Peter
-- You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Peter Wolf
Most Excellent :-D
-- I use IntelliJ. How do I enable it? Thanks P You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Peter Wolf
Nevermind, I think I found it
-- Preferences > Languages & Frameworks > Scala > Performance > Implicit parameters search depth By default it is set to -1 (off) You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Not sure it’s that. Anyway here are some things IntelliJ gives you: The above underline means an implicit conversion is being used. I clicked on It shows all potentially applicable implicit conversions, and bolds and focuses the one that is being used. Here’s how it works for implicit parameters: I clicked on On Tue, Mar 28, 2017 at 3:38 PM Peter Wolf opus111@... wrote:
You received this message because you are subscribed to the Google Groups "scala-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |