rudogma / scala-supertagged

Unboxed (multi-nested-)tagged + unboxed newtypes. Better and much friendlier alternative to AnyVals.
MIT License
94 stars 5 forks source link

Confusion about Newtype vs NewType #5

Open mpurins-nc opened 3 years ago

mpurins-nc commented 3 years ago

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 commented 3 years ago

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

I will think about alternatives.