[nem-bug] [Nemerle 0000987]: Allow not only literals to be default value for parameters

feedback at nemerle.org feedback at nemerle.org
Sun Apr 8 15:47:29 CEST 2007


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=987> 
======================================================================
Reported By:                divan
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   987
Category:                   Compiler
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             04-08-2007 15:47 CEST
Last Modified:              04-08-2007 15:47 CEST
======================================================================
Summary:                    Allow not only literals to be default value for
parameters
Description: 
Default functional parameters can be useful.

def SomeAlgo (y : int, f = x => x, g = x => 1){}
SomeAlgo (1, f = x => 2*x);

And maybe allow parameters to use previous parameters.
def f (x : int, y = x + 1, z = y + x + 4);
f (5);
f (5, z = 1);
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
04-08-07 15:47 divan          New Issue                                    
======================================================================




More information about the bugs mailing list