greptilian logo

IRC log for #friendlyjava, 2017-08-20

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
05:32 df0_ joined ##friendlyjava
05:43 foojs joined ##friendlyjava
05:55 foojs hi
05:56 foojs aditsu, df0_ pdurbin pulsar
06:01 aditsu foojs: hi
06:01 foojs how are you aditsu ?
06:01 aditsu not too bad
06:02 foojs new updates on your language ?
06:02 aditsu haven't had time to work on it, but I plan to
06:03 foojs hmmm
06:03 foojs are you using java  ?
06:03 foojs java 8?!
06:04 aditsu I am using it for some projects
06:06 foojs well ... uhmm
06:06 foojs I found this and i got bit scared
06:06 foojs Foo.super.defaultMethod();
06:07 foojs Foo.super ?
06:07 aditsu super is not new in java 8, it's been there forever
06:08 aditsu you can use it to access an overridden method
06:09 foojs well you see that
06:10 foojs i cant use super with class /interface names
06:10 foojs now i can
06:12 foojs aditsu, i want to know what is theory behind it ?
06:13 aditsu hmm, I'm not really familiar with that, trying to test something
06:14 aditsu foojs: I just found this: https://stackoverflow.com/questions/33195189/confused-about-super-keyword-in-this-java-example
06:16 aditsu looks like it's specifically for default methods, as you can have multiple inheritance
06:19 aditsu before java 8, super.foo() could only refer to one implementation, since java 8 there can be more, so you can choose which one you want
06:20 aditsu and that's due to default methods in interfaces
06:23 foojs mmm that was strange :)
06:26 aditsu I haven't done much with default methods, I tried something "clever" once but quickly failed - https://stackoverflow.com/questions/35770017/must-implement-default-interface-method
06:37 aditsu foojs: also see https://medium.com/@LazaroIbanez/notes-about-java-8-difference-between-super-and-super-58740094be90
06:44 foojs java 8 features are odd aditsu
06:44 aditsu some of them, probably
06:45 aditsu but I'm really enjoying lambdas and method references
07:07 foojs joined ##friendlyjava
07:13 foojs joined ##friendlyjava
07:28 foojs joined ##friendlyjava
07:30 foojs hi
07:32 foojs when you compare with FP language its extremely odd :(
07:33 foojs method reference are meant for only Consumers ? aditsu
08:01 foojs i see, i know little about java 8
12:38 mr_lou joined ##friendlyjava
13:22 foojs left ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode