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 916181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:00:27+00:00 2026-05-15T18:00:27+00:00

I was working on serializing values when found out about this one. Ruby has

  • 0

I was working on serializing values when found out about this one. Ruby has a TrueClass class, and a FalseClass class, but it has no Boolean class. I’d like to know why is this.

I see some advantages in using a Boolean; for example, string parsing could be centralized on it.

Ruby developers are smarter than me, so there must be a lot of good reasons that I just don’t see. But right now it looks to me like having OneClass and a TwoClass instead of Fixnum.

  • 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-15T18:00:28+00:00Added an answer on May 15, 2026 at 6:00 pm

    It seems that Matz himself answered this question on a mailing list message in 2004.

    Short version of his answer: “right now it works ok, adding a Boolean doesn’t give any advantage”.

    Personally I don’t agree with that; the aforementioned “string parsing” is one example. Another one is that when you are applying different treatment to a variable depending on its type, (i.e. a yml parser) having a “Boolean” class is handy – it removes one “if”. It also looks more correct, but that’s a personal opinion.

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

Sidebar

Related Questions

Working with WCF how it should modify this DataContract or code: <DataContract()> Public Class
I'm working on serializing a class that supports NSCoding. I've setup encodeWithCoder and initWithCoder
I am using Xstream to serializing a Job object. It looks working fine. but
I'm testing out using fx:Model s, serializing it to JSON is not working as
I'm working on creating a JsonConverter for JSON.NET that is capable of serializing and
Working with an undisclosed API, I found a function that can set the number
Working with H2 I get this error when I try to write a row
I was dabbling with the form serialize but surprisingly its not serializing the form.
I need to send an Object from client to server by serializing it. This
I am working on a program, where I save it's project files by serializing

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.