Differences

This shows you the differences between two versions of the page.

Link to this comparison view

irc:1434664800 [2017/05/27 13:44] (current)
Line 1: Line 1:
 +[11:58:26] <​LaSombra>​ Hi purplefox. I working on implementing https://​bugs.eclipse.org/​bugs/​show_bug.cgi?​id=469623 and have some questions about the test cases. Do you have a min to discuss this?
 +
 +[16:57:52] <​purplefox>​ temporalfox:​ hi julien
 +
 +[16:58:04] <​purplefox>​ Narigo: hi joern - do you have 2 mins?
 +
 +[16:59:17] <​temporalfox>​ purplefox hi again
 +
 +[16:59:42] <​purplefox>​ temporalfox:​ i have very simple scala question, i know you're not an expert but you're better than me :)
 +
 +[17:00:35] <​purplefox>​ temporalfox:​ maybe you can help
 +
 +[17:00:48] <​temporalfox>​ purplefox hopefully :-)
 +
 +[17:00:52] <​purplefox>​ temporalfox:​ here we have a method close that takes a handler<​asyncResult>​ https://​github.com/​vert-x3/​vertx-mysql-postgresql-client/​blob/​master/​src/​main/​scala/​io/​vertx/​ext/​asyncsql/​impl/​AsyncSQLConnectionImpl.scala#​L83
 +
 +[17:01:30] <​purplefox>​ I want to add another method close which takes no args, and simply calls the other close method with an empty(ish) lambda like this (in java)
 +
 +[17:02:08] <​temporalfox>​ copy paste the whole block :-)
 +
 +[17:02:42] <​temporalfox>​ so basically you want to know the syntax for a noop handler in scala
 +
 +[17:03:10] <​purplefox>​ like this: https://​github.com/​vert-x3/​vertx-jdbc-client/​blob/​master/​src/​main/​java/​io/​vertx/​ext/​jdbc/​impl/​JDBCConnectionImpl.java#​L89
 +
 +[17:03:24] <​purplefox>​ yeah i can't figure out the syntax
 +
 +[17:03:25] <​temporalfox>​ I'm affraid I don't know how to do that, although it seems fairly basic
 +
 +[17:03:38] <​purplefox>​ ok np
 +
 +[17:03:50] <​purplefox>​ this mysql client in scala is a real pita
 +
 +[17:04:05] <​temporalfox>​ for a java developer yes :-)
 +
 +[17:04:56] <​purplefox>​ yes