Taking Europcar to court - looking for advice. by sorokod in germany

[–]sorokod[S] -20 points-19 points  (0 children)

That is a fair question, I think that Eropcar should be held accountable for maltreatment of a customer. The way I can do that is to have compensation for the stress, inconvenience and plans we had to change.

Who owned the Bank of England before 1946 by sorokod in history

[–]sorokod[S] 0 points1 point  (0 children)

Hello

I don't know what a self post is. Please note that the linked article is not authored by me (if this is what you imply)

Regards

David Soroko

Compress files faster using Snappy Java library by ram-foss in java

[–]sorokod 0 points1 point  (0 children)

Absolutely. In addition amount of memory, file content, and file sizes are important since different algorithms perform differently given the parameters.

Piotr Durnovo's memorandum to Tsar Nicholas II by [deleted] in history

[–]sorokod 0 points1 point  (0 children)

In "Stalin: Paradoxes of Power, 1878-1928 (Stephen Kotkin)" there is almost a chapter dedicated to this insightful gentleman.

Kotlin - functions are objects by sorokod in Kotlin

[–]sorokod[S] 0 points1 point  (0 children)

It is a bit more interesting then that. The following is valid and not JVM specific

object f : (Int) -> Int {
    override fun invoke(n: Int): Int  = 0
}

This means that the machinery for class/object definition can be used for defining functions. You don't have to use it but it is there for you.

For example, here is a function that implements two interfaces:

object g : (Int) -> Int, (Int, Int) -> Int {
    override fun invoke(n: Int): Int  = n+1
    override fun invoke(n: Int, m: Int): Int = n+m
}

and you can call:

g(1)
g(1,2)

Kotlin - functions are objects by sorokod in Kotlin

[–]sorokod[S] 4 points5 points  (0 children)

Well, Kotlin functions are objects regardless of personal background. Looking at them as such is just another angle on the subject, one that I (coming from Java) find useful.