Author Topic: Unified style for numbering system  (Read 59 times)

acbaile

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Unified style for numbering system
« on: November 17, 2018, 12:54:52 AM »
    Maybe, unified style for numbering system? Unified prefixes for defining numbering system of number. Without prefix - decimal. 0b - binary, 0e - eight-base, 0d - decimal, 0x - hexadecimal:

    uint8  a = 0b10;
    uint32 b = 0e12345670;
    uint32 c = 0d1234567890;
    uint32 d =   1234567890;
    uint64 e = 0x123456789ABCDEF0;
« Last Edit: November 18, 2018, 02:32:04 AM by acbaile »

lerno

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Re: Unified style for numbering system
« Reply #1 on: November 17, 2018, 01:44:20 AM »
What is the usecase? C2 supports standard binary, octal and hex notation. Why would this be needed?

acbaile

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: Unified style for numbering system
« Reply #2 on: November 18, 2018, 12:31:32 AM »
What is the usecase? C2 supports standard binary, octal and hex notation. Why would this be needed?

    We need simplifying of thinking. Simplier rules - less errors, easier thinking, easier development of program.

    Who did say it? The thing must be simple as possible, but not more.
« Last Edit: November 18, 2018, 02:27:31 AM by acbaile »