Changes between Version 2 and Version 3 of StricterLabelledFieldSyntax


Ignore:
Timestamp:
Jul 26, 2009 1:34:27 AM (6 years ago)
Author:
igloo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StricterLabelledFieldSyntax

    v2 v3  
    1717
    1818Make the labelled field syntax stricter, so that unclear code is illegal.
     19
     20Instead of:
     21{{{
     22data A = A {x :: Int}
     23
     24y :: Maybe A
     25y = Just A {x = 5}
     26}}}
     27you would need to write:
     28{{{
     29data A = A {x :: Int}
     30
     31y :: Maybe A
     32y = Just (A {x = 5})
     33}}}
    1934
    2035== Description ==