When comparing Actionscript vs PureScript, the Slant community recommends PureScript for most people. In the question“What are the best (productivity-enhancing, well-designed, and concise, rather than just popular or time-tested) programming languages?” PureScript is ranked 39th while Actionscript is ranked 74th. The most important reason people chose PureScript is:
Has Typeclasses and RankNTypes
Ranked in these QuestionsQuestion Ranking
Pro Great for light games
Easy 2D and rich 3D capabilities means ActionScript is a great game prototyping or production tool. Relatively easy to get images on a stage and easy to share with it's wide platform support.
Pro Wide compatability
Runs on all major platforms as an AIR executable or mobile app, as well as in-browser as a FLASH file.
Teaches strong typed habits and follows many conventions of major programming languages.
Pro Large community
Online games and a colorful history means there are a lot of existing scripts and examples on the internet for available integration as well as tutorials.
Pro Higher kinded types
Has Typeclasses and RankNTypes
Pro High performance FFI code
Pro Modules can be compiled to CommonJS
Pro Has row polymorphism and extensible effects
Pro Type safety
Compiling should be your first unit test. A tight type system (static and hopefully strong) will catch many logic errors that are often difficult to spot through debugging. In languages like PureScript, if it compiles, it often runs properly.
Pro Pure functional language
You cannot have side effects, unless a function is explicitly defined as so.
FFI system is quite good and easy to use. You can import functions curried or not curried. Records and arrays use native JS objects and arrays.
Pro Awesome web frameworks
Halogen (VDOM, similar to ELM)
And hit these up with Signals, Isolated/(Managed?) Components, powerful functions and FFI
Con No future
The last stable release is : 3.0 / June 27, 2006. Adobe confirmed there will be no 4.0, ever. This train has stopped long time ago.
Con Waning support
Un-usable in-browser on most mobile devices, ActionScript is used mainly for niche AIR programs, graphical mobile and in-browser apps and games, and in UI/UX using Scaleform.
Con Not very widely used
Past its hay-day, ActionScript is reserved for more niche products. This in turn means that choosing ActionScript as a career path is often ill-advised. Exceptions include ScaleForm for UI/UX in games (including AAA games) and light apps and games.
Con Lots of dependencies needed to get started
Purescript is written in Haskell, but meant to be used with Node.js. As a result, to get started , users must install ghc, cabal, node.js, grunt, and bower. Purescript also has its own compiler, and different semantics form Haskell, and so even after installing, there's still some overhead to getting productive with Purescript.
Con Lack of good IDE/tooling support
Con Restrictive FFI
Con Documentation not updated
Con Ecosystem not stable
Con Slow compilation
On large project, for example Halogen