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.

Simpler method naming?

See original GitHub issue

As of 0.13.1, there are a number of methods in Retry (and elsewhere) that are straightforward unambiguous overloads, such as the various execute and decorate methods. Since there is no risk of collision among these methods, I suggest that the API would be simpler to navigate if these were simply overloaded with the same name: execute(Supplier), execute(Runnable), and so on.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
gavlyukovskiycommented, Feb 25, 2019

@RobWin @chrylis please don’t mix execute(Supplier<T> supplier) and execute(Callable<T> callable), it will cause Ambiguous method call compiler error in user code with lambda expression.

0reactions
RobWincommented, Feb 26, 2019

Aah thx. Now I remember why it didn’t work in the first place.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coding like Shakespeare: Practical Function Naming ...
Code like a poet! The article describes practical function naming conventions to increase the code readability. Useful clean code tips and ...
Read more >
Meaningful concise method naming guidelines
The simple answer is to forget about naming convention and style as if it were some separate thing to be determined separately, and...
Read more >
Naming Methods - Apple Developer
Provides naming guidelines for Cocoa API and design advice to framework developers.
Read more >
How to Better Name Your Functions and Variables - Medium
When naming a function, variable or class, you should keep the following things in mind: Choose a word with meaning (provide some context) ......
Read more >
What's a good name for a method that gets or creates an object?
1. Find Synonyms · 2. Use Adverbs as Suffix · 3. Use Adverbs as Prefix · 4. Use words that describe what you...
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