RU beehive logo ITEC dept promo banner
ITEC 380
2009fall
ibarland

homeinfolecturesexamshwsarchive

lect08b
still to do...

Representing AncTree in Java.
        (better prob: foldr for trucks-handle-key?
          Naw -- the 'map' example already has closure issues)
        let* and closures [after mutation] -- after hw05
        if-else-if and Java?
        'append' (?); tree-process: height; toString; 
        'contains?'
        write 'assoc' ?
        parse
        quote, backquote
   Syntax, semantics for scheme
   How many function call syntaxes in Java?  At least a dozen:
   Java:  obj.meth(...)      [also with implicit 'this']
          class.meth(...)
          new Widget(...)    [anon inner class?]
          super(...)
          this(...)
          a + b            (+ a b)
          !a               (not a)
          new int[23]
          arr[i]           (vector-ref arr i)        compare to List.get(i)
          arr[i] = ...     (vector-set! arr i ...)   compare to List.set(i,...)
          obj.f            (widget-f obj)
          obj.f = ...      (set-widget-f! obj ...)
          (String literals call string constructor?)
    Overloading '+': a good thing?
    varargs, autoboxing, Arrays.asList; e.g. generalize 'max'; UtilIan.java






 (Notes to self, for possible upcoming topics:)
- a grammar for scheme
- scheme semantics;
  The semantics of let.
- parsing a linear grammar: our silly English grammar (in scheme, in Java)
- write 'assoc' (after list abbrev);


homeinfolecturesexamshwsarchive


©2009, Ian Barland, Radford University
Last modified 2009.Oct.20 (Tue)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme