User Tools

Site Tools


cs330_f2016:rackethof2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cs330_f2016:rackethof2 [2018/09/18 00:51]
morse
cs330_f2016:rackethof2 [2018/09/18 00:52]
morse
Line 16: Line 16:
   * ''​default-parms''​ - decorates a function to add default parameter values   * ''​default-parms''​ - decorates a function to add default parameter values
   * ''​type-parms''​ - decorates a function to enforce parameter type checking   * ''​type-parms''​ - decorates a function to enforce parameter type checking
-  * ''​new-sin2''​ - a decorated version of your earlier ''​new-sin''​ that fills in default parameters and enforces correct types for all parameters ​(this must be created using ''​default-parms''​ and ''​new-sin2'',​ not hand-coded)+  * ''​new-sin2''​ - a decorated version of your earlier ''​new-sin''​ that fills in default parameters and enforces correct types for all parameters
  
 You will also chain these together to add both parameter type checking and default parameters to a function. You will also chain these together to add both parameter type checking and default parameters to a function.
Line 66: Line 66:
   * uses ''​0''​ and '''​radians''​ as defaults for the parameters, and   * uses ''​0''​ and '''​radians''​ as defaults for the parameters, and
   * verifies that the first parameter is a number and that the second parameter is a symbol.   * verifies that the first parameter is a number and that the second parameter is a symbol.
 +This must be created using ''​default-parms''​ and ''​type-parts'',​ not hand-coded.
  
 ---- ----
cs330_f2016/rackethof2.txt ยท Last modified: 2021/06/30 23:42 (external edit)