Wrap eunit macros into begin ... end blocks

Anthony Ramine <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <[email protected]>
Hello,

This makes typos such as missing commas between two assertions (e.g. ?assert(true) ?assert(true)) syntax errors instead of silently compiling and failing with a badfun error at runtime.

This won't break any existing code as parenthesed expressions and blocks have the same precedence and none of these macros can be used as patterns.

	git fetch https://github.com/nox/otp.git eunit-macros-blocks

	https://github.com/nox/otp/compare/erlang:maint...eunit-macros-blocks
	https://github.com/nox/otp/compare/erlang:maint...eunit-macros-blocks.patch

Regards,

-- 
Anthony Ramine

_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.