Time Travel in Scala: CPS in Scala (scala’s continuation).


Sometime before I was just roaming around in the landOfLisp  and I came across different spaceships of different guilds of Functional Programming that are going to save the earth from the unholy creatures: Bugs ! That degrade our software quality.

I was trying to map everything to Scala as it can also be written in a functional way. Then I came across a guild name Continuation. I was quite fascinated with this because it allowed us to travel time in our code.

So basically , continuations is a way to put “time travel” into our code.

In a more technical way ,

A continuation is an abstract representation of the control state of a computer program. So what it actually means is that it is a data structure that represents the computational process at a given point in the process’s execution; the created data structure can be…

View original post 530 more words


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s