What are “n+k patterns” and why are they banned from Haskell 2010?

后端 未结 2 1902
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 01:20

When reading Wikipedia\'s entry on Haskell 2010 I stumbled across this:

-- using only prefix notation and n+k-patterns (no longer allowed in Haskell 2010)
fa         


        
2条回答
  •  盖世英雄少女心
    2020-11-29 02:06

    The link provided by trinithis is correct; n+k patterns are no longer included in the Haskell spec.

    For more background on n+k patterns in general, scroll about 3/5ths of the way down this page on pattern matching, or check out this short post.

提交回复
热议问题