Skip to content

Shouldn't Size & SizeF be replaced by Point & PointF? #1626

Answered by tocsoft
br3aker asked this question in Q&A
Discussion options

You must be logged in to vote

No they should not... they are conceptually different. Yes from purely a data point of view they could easily be a single type but from an API/code understanding point of view they are very different.

If it was a single shared type it would cause way too much additional cognitive load requirements forced onto our users and make our APIs way less self documenting. You must not forget that source code is not really for machines/the compiler first its for developers first and the compiler second. The reason for that is developers are going to to have to read and mentally process the code as they write it today, and in several years time when they have to come back to maintain it, so its real…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@br3aker
Comment options

@JimBobSquarePants
Comment options

@br3aker
Comment options

Answer selected by JimBobSquarePants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants