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.

Builders / type abbreviations for NonEmpty collections

See original GitHub issue

I propose we add a builder for NonEmptySeq<_> and type abbreviations for all 4 NonEmpty collections.

The question is, how do we call those builders / type abbreviations?

I can think of 2 options:

  1. neseq, nelist, nemap and neset

  2. nseq, nlist, nmap and nset

I think option 1 is being used in Haskell, with capital NE.

Anyway this is F# and although it’s nice to align with other languages naming, we have different naming conventions.

Note: for the existing nel builder we can deprecate it, or just keep it as a second abbreviation, which won’t be promoted.

Thoughts? Please, existing NonEmptyList users, chime in.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gustycommented, Oct 7, 2020

My vote goes for n.

So far it seems I’m the only one 😦

0reactions
gustycommented, Oct 9, 2020

Thanks for the feedback, ne is clearly the winner, with all voices (except mine) supporting it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Construction Drawing Abbreviations
The following is a list of abbreviations found on a typical set of construction drawings designed to help you interpret information on your...
Read more >
The Architecture of Scala Collections
Builders are generic in both the element type, Elem , and in the type, To , of collections they return. Often, a builder...
Read more >
Proposal: Type aliases / abbreviations / newtype · Issue #410
F# has a feature called type abbreviations where a more complex type can have an easier to use alias. I am finding more...
Read more >
Shipping-terms-and-abbreviations-1.pdf
CY:- Container Yard Collection and Distribution point for loaded FCL and empty containers. D:- Door. DAA:- Discharge always afloat.
Read more >
10 Understanding Acronyms and Abbreviations
Acronym or Abbreviation Description Field Size Needed to Translate Double‑byte A/B or AB Address Book 10 A/P Accounts Payable 8 A/R Accounts Receivable 8
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