开发者

Is it worth to create a pure graphics library for haskell [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

I am quite new to Haskell, but there is some idea, I have. I would like to know if it's worth to implement it (if it's consistent with recommended Haskell style and if it isn't already done).

I am thinking about a library that would feature a pure, abstract canvas object. It would work like this:

  1. The object would be immutable. Drawing on it would create a new canvas (implemented as list construction).
  2. It would be completely 开发者_运维知识库abstract list of shapes independent from any actual renderer.
  3. There will be renderers able to transform this abstract canvas to bitmap and vector formats. This would be the only impure operation needed when working with this library.

What do you think? If I receive approval from some seasoned haskellist I would give it a try.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜