[erlang-questions] Funargs: Ruby-like blocks for Erlang

Tristan Sloughter tristan.sloughter@REDACTED
Thu Jul 21 18:21:15 CEST 2011


How about doing that 'do' addition to make Erlando's use of Monads
(especially the error monad that I love) look nicer. Instead of having a
list.

error_m do
  ...
end

?

On Thu, Jul 21, 2011 at 9:29 AM, Dhananjay Nene <dhananjay.nene@REDACTED>wrote:

> On Thu, Jul 21, 2011 at 1:24 PM, Tony Arcieri <tony.arcieri@REDACTED>
> wrote:
> >> And voila, you have a fairly decent DSL for building XML from Erlang.
> >
> > For comparison, here's the hypothetical XML "DSL" in regular Erlang
> > syntax versus the block form:
> >
> > https://gist.github.com/1096754
>
> I couldn't but help being reminded of
> http://redmine.ruby-lang.org/issues/5054 when reading the gist of
> either version :) :)
>
> Dhananjay
> --
>
> ----------------------------------------------------------------------------------------------------------------------------------
> http://blog.dhananjaynene.com twitter: @dnene google plus:
> http://gplus.to/dhananjaynene
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110721/99b73b9f/attachment.htm>


More information about the erlang-questions mailing list