Skip to content

Attempt to create an equivalent of Haskell's 'where' construct in scala.

Notifications You must be signed in to change notification settings

nc6/scala-where

Repository files navigation

This is an attempt to create the equivalent of Haskell's where binding in Scala using untyped macros.

For example (Haskell):

foo x y = a - b
    where 
      a = x + y
      b = x * y

Currently, scala-where gives you the following syntax:

  val result = where (f1(1) * f2(2)) {
  	def f1(x : Int) = x + 1
  	def f2(x : Int) = x + 2
  }

About

Attempt to create an equivalent of Haskell's 'where' construct in scala.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages