www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8782] New: D lexer do not understand unicode char … for variadic

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8782

           Summary: D lexer do not understand unicode char … for variadic
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bioinfornatics gmail.com


--- Comment #0 from bioinfornatics <bioinfornatics gmail.com> 2012-10-08
04:31:10 PDT ---
D lexer do not understand unicode char … for variadic.

from some keayboard layout is faster to write … than ...
________________________________________

import std.stdio;
import std.algorithm;
import std.array;

void main( ){
    immutable int[] a = [4, 6, 1, 2,];
    immutable int[] b = cast(immutable) a.dup
                .sort!( (x,y) => x < y )
                .array;
    writeln( b );
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 08 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8782



--- Comment #1 from bioinfornatics <bioinfornatics gmail.com> 2012-10-08
04:32:24 PDT ---
(In reply to comment #0)
 D lexer do not understand unicode char … for variadic.
 
 from some keayboard layout is faster to write … than ...
 ________________________________________
 
 import std.stdio;
 import std.algorithm;
 import std.array;
 
 void main( ){
     immutable int[] a = [4, 6, 1, 2,];
     immutable int[] b = cast(immutable) a.dup
                 .sort!( (x,y) => x < y )
                 .array;
     writeln( b );
 }

oops bad paste sorry ________________________________________ import std.stdio; void foo( int[] params … ){ foreach( param; params ) writeln( praram ); } void main(){ foo( 1, 2, 3, 4 ); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 08 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8782


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc


--- Comment #2 from bearophile_hugs eml.cc 2012-10-08 04:46:17 PDT ---
The idea of using unicode glyphs in source code is interesting, and I think the
now dead Fortress shows it's useful if done well. But introducing such change
in D, and requiring a smart editor, just for a single symbol is a bit too much
for too much little.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 08 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8782


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |WONTFIX
           Severity|normal                      |enhancement


--- Comment #3 from Walter Bright <bugzilla digitalmars.com> 2012-10-08
08:02:16 PDT ---
I agree with bearophile. While D is a fully unicode language, the rest of the
programming ecosystem is not there yet, and it would just be grief to make such
changes now.

Maybe in 10 years.

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