-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library configuration improvements #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are few minor comments, may you please answer them / fix?
013adb5
to
08b9a60
Compare
08b9a60
to
959ece9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more note
…t them as unordered dictionary instead of an ordered list. Unnamed argument is allowed only if library has single property declaration
fun <T> Deferred<T>.awaitBlocking(): T = if (isCompleted) getCompleted() else runBlocking { await() } | ||
|
||
fun String.parseIniConfig() = | ||
split("\n").map { it.split('=') }.filter { it.count() == 2 }.map { it[0] to it[1] }.toMap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't some INI parser used? In this implementation comments (;
) are not handled properly. I understand that .properties
has only one line, and it may be left as is this time.
Fixes #31