question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method name collision with kotlin reserved word

See original GitHub issue

Methods Prepared*.object have collision with kotlin object reserved word. It’s kind of ugly be calling this way

storIOSQLite.delete().object(toDelete)

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
artem-zinnatullincommented, Jun 8, 2017

Something like this should work:

fun <T> PreparedGetObject.Builder<T>.kobject(type: Class<T>) = this.`object(type)`
1reaction
artem-zinnatullincommented, Jul 21, 2016

I’d just add extension function in the project that uses StorIO 😃

On Thu, 21 Jul 2016, 22:48 Ilya Zorin, notifications@github.com wrote:

@artem-zinnatullin https://github.com/artem-zinnatullin what do you think about adding alias method for object for better experience in Kotlin?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pushtorefresh/storio/issues/638#issuecomment-234363358, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7B3EuC9cil4R2Htc7SgPEBO_-OGEghks5qX80ngaJpZM4IDdRg .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coding conventions | Kotlin
Package and class naming rules in Kotlin are quite simple: Names of packages are always lowercase and do not use underscores ( org.example....
Read more >
Escape reserved words in an import - kotlin - Stack Overflow
So how to escaped reserved words on import. e.g. The tinkerpop library has a class called '__' but thats a Kotlin reserved so...
Read more >
[REQ] Define custom reserved words #12336 - GitHub
I think an ideal resolution is to pick variable names with a low chance of collision (underscores where appropriate), and also to add...
Read more >
Spring Data R2DBC - Reference Documentation
The version name follows ${calver} for GA releases and service releases and ... “Repository query keywords” covers the query method keywords ...
Read more >
Guide to Kotlin Interfaces | Baeldung on Kotlin
Now as we implement ChildClass inheriting from FirstChildInterface and SecondChildInterface, it's necessary for us to override the function ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found