3 ms·
> Why do we still have to name variables OmegaZero when our computers now know how to render 0x03a9+0x2080 properly? Majority of developers are not from Greece
by Const-me 5y ago
> Why do we still have to name variables OmegaZero when our computers now know how to render 0x03a9+0x2080 properly?
Majority of developers are not from Greece; they don’t have the keys on their keyboard. Technically, modern C# supports Unicode just fine, here’s an example.
using System;
using System.Collections.Generic;
using System.Linq;
static class Program
{
static double Σ( this IEnumerable<double> elements ) =>
elements.Sum();
static void Main( string[] args )
{
double[] α = new double[ 3 ] { 1, 2, 3 };
Console.WriteLine( α.Σ() );
}
}
> Why not make color part of the syntax?
Similar reason, because input becomes more complicated. You gonna need to either memorize hotkeys, or reach for the mouse. Also copy-pasting UX becomes way too complicated.