Coin Considerations

Bruce Chapman brucechapman at paradise.net.nz
Mon Mar 16 02:05:25 PDT 2009


Reinier Zwitserloot wrote:
> So what proposals are still fermenting in the minds of coin  
> contributors? Inspired by the recent discussion between Joe D'Arcy and  
> Mark Mahieu that people are possibly thinking someone else will be  
> proposing it.
>
>
>   
Here's my list

byte size integral literals either via autosizing hex literals 0hNNNN 
(type is smallest type that can hold the value - would probably also 
include binaries 0bNNNNN) or alternatively via a new integer literal 
suffix (would include shorts as well).

A zero fill (unsigned) widening conversion (but can't call it that cause 
we lose sign) / operator probably "(+)"  to morph bytes into integers 
without sign extension.

A special language escape operator which will always generate a compiler 
error. Reasons too complex to explain in one sentence. - no 
implementation required.

Maybe: Type literals (for annotations) depending on where the field / 
method literals discussion goes - might be too big for coin.

Bruce




More information about the coin-dev mailing list