carlw
09/12/2017, 6:09 PMcarlw
09/12/2017, 6:09 PMtieskedh
09/12/2017, 6:16 PMedvin
09/12/2017, 6:42 PM+=
is better than add
, but I don't have a strong preference either way.tieskedh
09/12/2017, 6:44 PM+=
more, but just because it's possible.
On the other hand if it's a long line, then +=
is definately "better"edvin
09/12/2017, 6:45 PMalso
says: "Calls the specified function block with this value as its argument and returns this value." - but that's not the case is it? Does also change this
at all?edvin
09/12/2017, 6:46 PMwithNewScope
(Last function in Workspace.kt)edvin
09/12/2017, 6:46 PMedvin
09/12/2017, 6:46 PMtieskedh
09/12/2017, 6:47 PM(this)->this
tieskedh
09/12/2017, 6:47 PMedvin
09/12/2017, 6:47 PMtieskedh
09/12/2017, 6:48 PMcarlw
09/12/2017, 6:48 PMcarlw
09/12/2017, 6:48 PMedvin
09/12/2017, 6:48 PMcarlw
09/12/2017, 6:49 PMedvin
09/12/2017, 6:49 PMit.workspaceInstance = this
. Because this
is the Scope
, not the Workspace
, but Kotlin falls back to the Workspace, since the Scope doesn't match the signature.edvin
09/12/2017, 6:50 PMtieskedh
09/12/2017, 6:51 PMedvin
09/12/2017, 6:51 PMedvin
09/12/2017, 6:51 PMtieskedh
09/12/2017, 6:52 PMtieskedh
09/12/2017, 6:52 PMedvin
09/12/2017, 6:52 PMtieskedh
09/12/2017, 6:52 PMedvin
09/12/2017, 6:52 PMedvin
09/12/2017, 6:52 PMtieskedh
09/12/2017, 6:53 PMedvin
09/12/2017, 6:53 PMonDock
he could read the config file and do a select on root to find the password field for example?