Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do functional language gui bindings work?

Do they typically use non functional aspects of the language (including mutable variables). Are there other strategies? Could you describe them?

like image 630
Roman A. Taycher Avatar asked Oct 14 '22 04:10

Roman A. Taycher


1 Answers

Do they typically use non functional aspects of the language (including mutable variables)

Many do, yes. In case of haskell, which doesn't have mutable variables or functions with side-effects, they use the IO monad (which is haskell's way of encapsulating side-effects)-

Are there other strategies? Could you describe them?

Yes, there are. Look at functional reactive programming.

like image 105
sepp2k Avatar answered Oct 20 '22 15:10

sepp2k