quickstep24

Results 18 comments of quickstep24

Can someone shed some light on §E.2 for me. > ```kotlin > // do not do this > context(ConsoleLogger(), ConnectionPool(2)) { > context(DbUserService()) { > ... > } > }...

> Maybe someone can clue me into a use-case where unnamed context parameters are really important. Are they really worth propagating so much noise through the rest of the language...

Do you plan a grace period, where we can use unmarked callables from a context, perhaps with some opt-in? Libraries will not add `context` modifiers until this feature is stable...

No, in the end I used conventional time measurement (after some warming-up loops). My test cases were simple Boolean operations on large bitsets. I could not identify a performance gain,...

> Is the "& Any" becoming official? Why choose this weird syntax? Is it from another language? How do you read it? Can anyone please explain the logic behind choosing...

Great proposal. The idea of statically implementing an interface is interesting, but I wonder if `static interface` is the right concept. It implies that the interface "knows" that it will...

> `else if` is a well-known concept That is the problem. `else if` is a well-known concept, but for something *else* (no pun intended). `if`-syntax indicates the start of a...

Or, for the lazy, it could be ``` fun foo(n: Int) = when (n) { 0, 1 -> "a" _ && otherThing() -> "b" } ``` But maybe that is...