[Issue 2656] Require 0o format for octal literals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 12 10:47:44 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=2656



--- Comment #8 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-03-12 10:47:43 PST ---
(In reply to comment #7)
> octal!"10"
> 
> - This is ugly looking;

(a) subjective (for one, I find 0o or whatever way uglier)
(b) then all templates are ugly

> - it's too much long to write & takes too much space;

how many octal literals do you have in your code right now?

> - editors will need extra code to recognize that as a number and color it with
> the color used for numbers;

it's an editor issue

> - It can create a good number of templates and compile-time strings.

it's a compiler implementation issue; the template could embed a ctfe.

> So I think this idea needs to be shot in the head.

There is no solid argument against it above.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list