--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at http://groups.google.com/group/lisp-flavoured-erlang.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-erlang+unsub...@googlegroups.com.
To post to this group, send email to lisp-flavoured-erlang@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at http://groups.google.com/group/lisp-flavoured-erlang.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
(defmacro foo (...) ...)
(defmodule a
(export-macro ...))
(defmacro bar (...) ...)
(defmodule b
...
(export-macro ...))
(defmacro baz (...) ...)
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at https://groups.google.com/group/lisp-flavoured-erlang.
(defmodule foo
(export (a 0) (b 1))
(defun a () 42)
(defun b (x) (+ x 42))
)
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-erlang+unsub...@googlegroups.com.
To post to this group, send email to lisp-flavoured-erlang@googlegroups.com.
Visit this group at https://groups.google.com/group/lisp-flavoured-erlang.
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-erlang+unsub...@googlegroups.com.
To post to this group, send email to lisp-flavoured-erlang@googlegroups.com.
OK, I have now pushed to dev-macro and experimental first version of the new macro handling. It works according the 3rd option. However as yet you cannot export macros. I will fix exporting macros soon. Then we will have to decide if this is the way we want to go.
I have been toying with the idea of making a whole module one form which includes the functions and macros:
(defmodule foo
(export (a 0) (b 1))
(defun a () 42)
(defun b (x) (+ x 42))
)
I am not convinced though so unless someone comes screaming I will leave things as they are.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
(defmacro before (a b)
`#(before ,a ,b))
(defmodule mt1-a
(export (f 0))
(export-macro inside at)
)
(defmacro inside (a b)
`#(mt1-a ,a ,b))
(eval-when-compile
(set now (erlang:now))
(set (tuple date time) (tuple (date) (time))))
(defmacro at ()
`'(at ,date ,time ,now))
(defun f ()
(list
(before a 100)
(inside a 200)
(at)
))
(defmodule mt1-b
(export (f 0))
(export-macro inside at)
)
(defmacro inside (a b)
`#(mt1-b ,a ,b))
(eval-when-compile
(set now (erlang:now))
(set (tuple date time) (tuple (date) (time))))
(defmacro at ()
`'(at ,date ,time ,now))
(defun f ()
(list
(before a 100)
(inside a 200)
(at)
))
So this new handling has been cleaned up and moved over to the develop branch. It will be included in the coming v1.0 release which is on its way real soon now. It will behave basically as has been described here and I also wrote some blogs describing the features. I think this will be a good feature which will give LFE a more lispy feel. As an added bonus the run-time expansion also snuck in.
Robert
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-erlang+unsub...@googlegroups.com.
To post to this group, send email to lisp-flavoured-erlang@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at https://groups.google.com/group/lisp-flavoured-erlang.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-erlang+unsub...@googlegroups.com.
To post to this group, send email to lisp-flavoured-erlang@googlegroups.com.
Visit this group at https://groups.google.com/group/lisp-flavoured-erlang.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-erlang+unsub...@googlegroups.com.
To post to this group, send email to lisp-flavoured-erlang@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at https://groups.google.com/group/lisp-flavoured-erlang.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at https://groups.google.com/group/lisp-flavoured-erlang.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
My grasp of rebar3 is tenuous at best, but if lfe is a dependency of some plug-in, won't we need rebar compilation support to be able to use the plug-in?
How will rebar know how to compile lfe for those other plug-ins if lfe doesn't have a rebar.config?
I think the only difficulty with rebar.config is to make it first compile the .erl files and then use bin/lfec to compile the .lfe files. I think.
Robert