pts icon indicating copy to clipboard operation
pts copied to clipboard

Parameter confused

Open tcper opened this issue 2 years ago • 2 comments

pts: GroupLike

Parameters like this really confused, What is the differences of PtLikeIterable or GroupLike Or construct a Group(new Pt(x,y), new Pt(a,b)), Group([1,2,3,4]) In practice, I think all these objects are different, because some works in Curve, some don't.

I think this is the biggest obstacle in this project, people have to read your Demo code to try which works.

tcper avatar Apr 29 '22 02:04 tcper

Thanks for the feedback @tcper -- there might be some ways to simplify. I'll look into this.

williamngan avatar May 02 '22 01:05 williamngan

Following up on this. As a starting point, I've updated the documentations so it's clearer what these types mean.

Not sure if I can simplify it further. Needed the Iterable types as we want to support non-array iterables.

When in doubt, just pass a Group instance which should work always :)

williamngan avatar Jun 16 '22 09:06 williamngan