Add function contracts and perform some refactoring #130

Merged
CommanderTvis merged 4 commits from refactor-and-contracts into dev 2020-08-22 12:57:32 +03:00
CommanderTvis commented 2020-08-21 22:48:16 +03:00 (Migrated from github.com)

Provide contracts for many functions, make inline several functions, replace <algebra>.run { and with(<algebra>) { with <algebra> {, add newlines at EOFs, specify operator modifier explicitly at many places, reformat files, replace if (...) error guards with require and check.

Provide contracts for many functions, make `inline` several functions, `replace <algebra>.run {` and `with(<algebra>) {` with `<algebra> {`, add newlines at EOFs, specify operator modifier explicitly at many places, reformat files, replace `if (...) error` guards with `require` and `check`.
altavir (Migrated from github.com) approved these changes 2020-08-22 08:29:19 +03:00
altavir (Migrated from github.com) commented 2020-08-22 08:20:31 +03:00

What is the reason for that? It is not that I object...

What is the reason for that? It is not that I object...
altavir (Migrated from github.com) commented 2020-08-22 08:23:16 +03:00

I think it makes sense to add Opt-in to the build instead of million-billion additional opt-in linse

I think it makes sense to add Opt-in to the build instead of million-billion additional opt-in linse
CommanderTvis (Migrated from github.com) reviewed 2020-08-22 11:21:00 +03:00
CommanderTvis (Migrated from github.com) commented 2020-08-22 11:21:00 +03:00

Since this list is not empty or 1-element, Kotlin actually will construct LinkedHashSet to keep order of elements, which is slower.

Since this list is not empty or 1-element, Kotlin actually will construct LinkedHashSet to keep order of elements, which is slower.
CommanderTvis (Migrated from github.com) reviewed 2020-08-22 11:21:32 +03:00
Sign in to join this conversation.
No description provided.