Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion about Newtype vs NewType #5

Open
mpurins-nc opened this issue Feb 26, 2021 · 1 comment
Open

Confusion about Newtype vs NewType #5

mpurins-nc opened this issue Feb 26, 2021 · 1 comment

Comments

@mpurins-nc
Copy link

Hi,

First of all thanks for this library -- I really like usage without annotations (I'm a bit allergic to them :D).

I have small suggestion for improving usability a bit.
Currently there are two types which can both be imported by import supertagged._ but they only differ in name by one letter change from lower case to upper case -- those are NewType and Newtype. Considering that one of them is used to create newtypes and other is not it got me confused for a bit when I typed extends Newtype[Int] and it didn't work.

I suppose simple renaming of one of them to something less confusing would work.

@rudogma
Copy link
Owner

rudogma commented Mar 2, 2021

However there is no way to compile the wrong way, I agree that it can be confusing for newcomers.

I will think about alternatives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants