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.

About collection handling

See original GitHub issue

Hey!

Really nice idea, library looks prettry good as well, I had found my self doing the same boleirplate code that this library smothly generate 😃

I only have one question why use + plus symbol for collections, IMHO it looks verbose.

 friends {
        +person {
            name = "Arturo"
            age = 28
        }
        +person {
            name = "Tiwa"
            age = 30
        }
    }

over

 friends {
        person {
            name = "Arturo"
            age = 28
        }
        person {
            name = "Tiwa"
            age = 30
        }
    }

(In my code I only instance builder with empty mutable collection and then add each item so generated dsl looks cleaner)

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
juanchosaraviacommented, Dec 3, 2018

Juan thanks for the feedback! It’s an interesting point! To be honest I need to think about to add this feature as I’m not 100% sure if this could bring other confusions on how to use Collections. Still feel free to send a PR, I think will be a great starting point to review it in more details.

3reactions
apatridacommented, Dec 11, 2019

This style is how I do my builders, no need for the +, just the function call adds to its owner’s collection.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specimen Collection & Processing Procedures | UCHealth
Proper specimen collection and handling is an integral part of obtaining a valid and timely laboratory test result. Specimens must be obtained in...
Read more >
SPECIMEN COLLECTION, HANDLING, and TRANSPORT
These guidelines cover some of the key steps in handling blood samples to provide optimal specimens for testing. Principle. There are multiple Pre-Analytical ......
Read more >
Specimen collection and handling best practices and pitfalls
Specimen integrity: Avoid contaminating a specimen with interfering substances during specimen collection. Buccal samples for genetic tests if ...
Read more >
The Importance of Proper Specimen Collection and Handling
It is a foundational principle for any laboratory test procedure that the value of the test is compromised or even negated by using...
Read more >
Specimen Collection, Handling, and Processing | SpringerLink
This includes maintaining the integrity and confidentiality of the patient's specimen; the proper collection of numerous types of specimens, ...
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