Shawn
01/16/2019, 4:34 PMcoder82
01/16/2019, 4:34 PMcoder82
01/16/2019, 4:34 PMmmaillot
01/16/2019, 6:44 PMlouiscad
01/16/2019, 11:26 PMdominik
05/13/2020, 7:11 AMVictor Maoya
05/13/2020, 12:40 PMSamyak Jain
05/13/2020, 5:59 PMSandeep Vasudevan
05/13/2020, 7:28 PMEtang
05/14/2020, 3:22 AMiex
05/14/2020, 7:19 AMuser
05/14/2020, 3:30 PMhttps://pbs.twimg.com/media/EX_QYROWkAIaw0b.png▾
user
05/14/2020, 4:23 PMelect
05/15/2020, 10:48 AMdodalovic
05/15/2020, 10:53 AMuser
05/15/2020, 1:01 PMKevin Gorham
05/15/2020, 5:31 PMmathew murphy
05/15/2020, 6:25 PMbjonnh
05/15/2020, 11:13 PMbjonnh
05/15/2020, 11:13 PMMerileoke
05/16/2020, 11:16 AMGriffin Holt
05/17/2020, 5:18 PMmattmoore
05/17/2020, 5:23 PMSamyak Jain
05/17/2020, 6:57 PMRyan
05/18/2020, 12:39 AMgroostav
05/18/2020, 6:35 AM//usage:
Kernel32::SetEnvironmentVariable.invokeForSuccessOrThrowLastError("EMPOWER_LGO_TRACE", "TRUE")
The key here is that I wanted to convert from Win32's C-compatible GetLastError()
into java exceptions.
To get this I needed a good whack of boiler-plate. see attached kt.
Am I missing something? Would arrow let me do something more clever here? I think at its roots the kotlin type signatures for functions do not let me write a single type that captures different arity.
tl;dr anybody know how i can write the boiler-plate in KotlinExtensions.kt more compactly?Animesh Sahu
05/18/2020, 7:28 AMVicky Kak
05/18/2020, 11:44 AMMike
05/18/2020, 12:18 PM