Revisiting Decimal (generic algorithms)

Brendan Eich brendan at
Fri Jan 16 12:15:34 PST 2009

On Jan 16, 2009, at 12:11 PM, Brendan Eich wrote:

>> This problem cannot be fixed simply by tweaking the coercion  
>> rules.  It probably requires that numeric literals be treated as  
>> generic values that are only interpreted situationally as either  
>> binary or decimal values in the context of a particular operations.
> That, or multimethods so we don't essentially carry around literals  
> in source form and pay high costs converting them according to  
> context. That was the ES4 solution at one point, until we started  
> cutting. Based on Dylan and Cecil precedents:


More information about the Es-discuss mailing list