Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6086661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:46:52+00:00 2026-05-23T11:46:52+00:00

How bad is it to use a built-in object, type or whatever as something

  • 0

How bad is it to use a built-in object, type or whatever as something it’s blatantly not, even if it performs in exactly the way you need? Assuming it’s clearly commented what you’re doing.

For example, to use a single CGPoint to represent a start and end point on a single line. Should I really be defining my own identical but differently named struct instead?

Edit: OK, using…

struct FloatRange {
    CGFloat min;
    CGFloat max;
};
typedef struct FloatRange FloatRange;

…instead. Are there no exceptions to the rule?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:46:53+00:00Added an answer on May 23, 2026 at 11:46 am

    For type safety, you should be defining your own.

    Also remember you can’t do someRange.start or someRange.end. Rather, it would be the inscrutable someRange.x or someRange.y.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering, what are the main reasons for not to use the built-in Entity
Is it a bad idea to use exception chaining when throwing RemoteExceptions? We have
1) Isn't it a bad practice to use these attributes on all of my
I have seen people say that it is bad form to use catch with
How bad is it to use Location Manager to retrieve the location information when
I constantly hear how bad reflection is to use. While I generally avoid reflection
What are good and bad points if i use body {font-size:62.5%} ? If body
I learned to use "exists" instead of "in". BAD select * from table where
Possible Duplicates: Why is lock(this) {...} bad? In C# it is common to use
I keep hearing that catch (Exception ex) Is bad practise, however, I often use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.